File Exchange

image thumbnail

encoder.m decoder.m

version (2.15 KB) by Tristan Ursell
Simple and instructive implementation of symmetric-key encryption and decryption.


Updated 03 Feb 2017

View License

Tristan Ursell
Encoder - dual level
Jan 2017
Includes two functions -- an encoder and decoder which together form a private symmetric key encryption system, with message-length masking.
'raw_message' is the original message in ASCII text to be encoded.

'key'** is an integer or char-integer less than 2^32 that will be used as
random number generator seed and serves as the cipher key. If no key is
provided, the script will generate one automatically using the current
time stamp.

** - must be the same between encoder and decoder

Comments and Ratings (2)

sami ullah

How it will the error:Undefined function or variable 'raw_message'


MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux