File Exchange

image thumbnail

Enigma

version 1.2.0.0 (10.2 KB) by James Roberts
Runs a simulation of the WWII-era German Enigma machine.

4 Downloads

Updated 07 Apr 2009

View License

Runs a simulation of the WWII-era German Enigma machine. Lets the user edit the encryption parameters and encrypt entire text files.

Cite As

James Roberts (2019). Enigma (https://www.mathworks.com/matlabcentral/fileexchange/23367-enigma), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

the preprocess function takes the input message (inMsg) and the list of characters used for encoding (characterList) and checks to make sure that the input message only contains valid characters. For instance, if the message contains a "!" but enigma doesn't have a "!" in characterList, preprocess removes the "!" from the message.

I'm new to Matlab and am trying to figure out what the "preprocess" function does in this statement:

% preprocess the message
procMsg = preprocess(inMsg,params.characterList);

Can anyone please help?

Bruno

Dick Benson

Nice!

Tip:
If you want to trim all those useless functions from the end of the enigma.m, simply delete the Callback and CreateFcn for each object using GUIDE.

I have done this to save you some time if you are interested.

dbenson@mathworks.com

Mr Smart

Thanks for the suggestion. I resubmitted it with a (very) brief help section. I felt like the help file was not the place to go into detail about the functionality of the enigma machine in general so I limited it to more of a "how to use" description than a "how it works" desctiption. Let me know if you have any more suggestions!

How about a help file or some directions?

Updates

1.2.0.0

Added a brief help section to the top of the m-file.

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