Important alert: (current site time 7/16/2013 1:08:23 AM EDT)
 

winzip icon

[ ENIGMA Real Version]

Email
Submitted on: 10/19/2004 11:02:14 AM
By: D. Rijmenants  
Level: Intermediate
User Rating: By 102 Users
Compatibility: VB 5.0, VB 6.0
Views: 51307
author picture
(About the author)
 
     This program is an exact simulation of the 3-rotor Army and famous 4-rotor Naval M4, used on U-boats, of the German Enigma cipher machine, as it was used during World War II from 1939 until 1945. You can select between the two models, choose different rotors or 'Walzen', preset the rotor wiring positions or 'Ringstellung' and switch letters by using plugs or 'Stecker'. The code is based on the technical details of the original machine. The internal wiring of all rotors is identical to those used by Wehrmacht, Luftwaffe and Kriegsmarine. Lots of research went into the design, working and handling, to provide a realistic and accurate simulation of all aspects of this crypto machine. It allows control and observation of all components. The simulator is therefor fully compatible with the real Enigma and you can decode original messages and encode your own text. The program includes a Smart Clipboard, Automatic Typing, a Helpfile containing the manual, the history of Enigma, several original messages and all technical details! There's also a picture gallery with authentic Enigma's and details of components. With this program you will finally be able to work with the most intriguing milestone in military cryptology and examine how it works and how it was operated. This is not one of many sims, available on the net, but a true reference to the Enigma machine! Well documented source code with lots of comments. All feedback and comments welcome. Program also available at http://users.telenet.be/d.rijmenants/en/enigmasim.htm *** New Update !!! 29 MAr 05, v4.0 ***

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 28 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/19/2004 12:05:56 PM

Excellent Enigma Simulation, The Best One By Far.
(If this comment was disrespectful, please report it.)

 
10/19/2004 12:20:45 PMLight Templer

Very nice app and graphics, but parts of code are very difficult to follow.
The slideshow in aboutbox is great!
Is this app for you own "just for fun"? There must be really a lot of work in it.
Kind regards - LiTe

(If this comment was disrespectful, please report it.)

 
10/19/2004 1:02:58 PMcoder86

Very good code, very useful for professional cryptologists,
what's more it's easy to make changes to the original code :)

Thank you!

Keep up the good work!



(If this comment was disrespectful, please report it.)

 
10/19/2004 2:41:44 PMD. Rijmenants

For those who still might wonder how it works: Open the cover, select the rotors, their order and ringposition, close the cover, set plugs, and finally set rotors in startposition, type your text, and the ciphertext is shown. To decrypt, turn the rotors back into start position (no need to open cover) and type the encrypted text. Plaintext comes out. The setting of rotors, their position, ringposition, plugs and rotor-startposition gave for those times a stunning 10E23 combinations. Unbreakable if not used so sloppy in the field by theire operators.
(If this comment was disrespectful, please report it.)

 
10/19/2004 3:31:16 PMPorkNBeans1973

This is great!
(If this comment was disrespectful, please report it.)

 
10/19/2004 5:25:12 PM

Impressive, 5 G's, Alan. :-)
(If this comment was disrespectful, please report it.)

 
10/19/2004 10:16:32 PMPaul Turcksin

Here, take another fiver for this brilliant work.
(If this comment was disrespectful, please report it.)

 
10/20/2004 5:01:24 AMCarpetboy

Absolutely worth 5 globes even the design alone is worth it.

Very nice work, thanks a lot for giving us a look at the inside.


(If this comment was disrespectful, please report it.)

 
10/20/2004 6:24:06 AM

Just fantastic! I always thought the Enigma was so intriguing when ever I would read about it. Now I have one of my very own to 'play' with. 5 'Walzen' for you.
(If this comment was disrespectful, please report it.)

 
10/20/2004 6:52:39 AM_Merlin_

Pretty impressive! 5 Enigma wheels for you from the Belgian jury.

Merlin is the name, and logic is my game...
(If this comment was disrespectful, please report it.)

 
10/20/2004 6:56:28 AMkerplunk_boy

Adolph must be VERY anger in his place...(wherever it may be)
(If this comment was disrespectful, please report it.)

 
10/20/2004 7:14:12 AM

Outstanding!! Thanks for making this available. 5 globes
(If this comment was disrespectful, please report it.)

 
10/20/2004 7:38:12 AM110100100

Very Slick.
(If this comment was disrespectful, please report it.)

 
10/20/2004 7:45:27 AMAlT

Although cryptology is not an interest of mine, there is some nice coding techniques and non-standard graphical controls...nice work. Certainly Five'r worthy.
(If this comment was disrespectful, please report it.)

 
10/20/2004 7:56:09 AMGreek Freak

all i have to say is...OMG!!!!!!!!!!! dude you have 5 globes....you rock....i wish you win the competition.!!! i am voting right away
(If this comment was disrespectful, please report it.)

 
10/20/2004 8:05:47 AMD. Rijmenants

Did someone already decrypt the code-message in the comments, about the Bismark? Yep, it's in German (ofcourse, original text) but you'll get the point :-)
(If this comment was disrespectful, please report it.)

 
10/20/2004 8:20:14 AMPaul Michael Bryant Sr.

First real 5 I have seen in some time; well at last a 5 worth voting for
(If this comment was disrespectful, please report it.)

 
10/20/2004 8:37:43 AMUlli

XTWTF KOCMO BNYVB PELJG WNISS MRVOM HYDPY VOHUU PQEBD TITHD MKWRR NBRCR CHZUE JQWMJ ENEPZ TBOJQ ISTOS BJTDZ IKMMI NQJCV PQVKH YCROL OQSXZ ZBOGG XOCGR JFOYW DSDJR QMZFY RZSVA QVQVO XNCKZ XWNFE GKSFP AEZLI RHYYH JHINQ CQQSI PWYFY MYNSL UZFDO IJVFH TGIGU UVNLR HKHDO

Beautifull graphics, historically correct mechanism and functioning, good code (although there is dead code in frmMain.SetReF after '4th rotor). Well deserves more than 5 rotors (may be we can double that number with a reflector?)
Two tiny inaccuracies: a lamp would only be on as long as a key was pressed and batteries don't last forever...
(If this comment was disrespectful, please report it.)

 
10/20/2004 8:49:03 AMrBg

foShizzle! o0o0o from me
(If this comment was disrespectful, please report it.)

 
10/20/2004 8:57:54 AMRichard Mewett

Awesome!
(If this comment was disrespectful, please report it.)

 
10/20/2004 8:59:53 AMD. Rijmenants

Note to Ulli: Without the correct settings, I'll never be able to encode your message. Never heard about wath it took to crack the Enigma in Blechtley Park? At his top, the park had over 7000 people working on breaking codes! And they didn't always succeed. The Marine Shark-code was far te most challenging. Many clever guy's went bezirk, trying to break each month the new codes!
(If this comment was disrespectful, please report it.)

 
10/20/2004 9:44:19 AMUlli

The code was produced on an Enigma I made some time ago. It uses random stecker, rotor and reflektor wiring based on a 'config number'; the code is therefore not compatible with any of your settings. The clear text is the kudos that follows. Btw I decoded the Bismarck message and it's the historically correct message: Treffer achteraus und manoevierunfaehig. Kaempfen bis zur letzten Granate etc...
(If this comment was disrespectful, please report it.)

 
10/20/2004 9:46:19 AMUlli

...and yes I know about Alan Touring and the guys at Bletchley Park.
(If this comment was disrespectful, please report it.)

 
10/20/2004 9:57:36 AMD. Rijmenants

Indeed Ulli, great 'story' no? Hope we made some people warmd-up for this magnificent piece of art in history, as Enigma was...I presume you were a fan already.
(If this comment was disrespectful, please report it.)

 
10/20/2004 10:38:10 AMUlli

Well, YOU(!) obviously did... The next project is "The Bomb" at Bletchley Park? Unfortunately I don't know anything about that, only that it existed and what it did.
(If this comment was disrespectful, please report it.)

 
10/20/2004 11:38:52 AMCybsoft

Check out "the secret war" by Brian Johnson, it has a complete detailed chapter about how the Enigma developed, got broken and detailed photos (also from colossus)
Nice submission.
(If this comment was disrespectful, please report it.)

 
10/20/2004 11:59:20 AM

cool crypto technology :)
(If this comment was disrespectful, please report it.)

 
10/21/2004 10:15:09 AMGandolf_The_GUI

Wow - impressive coding. THJDL GFJSH ASHGJ FJDKA GHSUG QLRNC to you too (I think I messed up a setting somewhere)
(If this comment was disrespectful, please report it.)

 
10/21/2004 10:49:16 AMD. Rijmenants

Tks, tks, tks !!!! About that coding, I must have rewrote it a 100 times: 50 times before it worked properly and 50 times to clean up the mess :-) By the way, as you can see, I used some German expressions in the code, I'm not German, but it kind of got me into the 'enigma-mood' by using that technical giberish, just for the fun ;-)
(If this comment was disrespectful, please report it.)

 
10/23/2004 5:13:56 PMNaLe!T

Dude you nEEd some help ASAP! Graphic - Outstanding, coding - Outstanding too.

If this is only for fun, what do u do for cha$h!
(If this comment was disrespectful, please report it.)

 
10/23/2004 11:20:42 PMVB COMEDIAN

D. Rijmenants.

I love that U571 the movie and Call of Duty game. My imagination of game - It could be cool play germans. You have less than 24 minutes to send enima before American spies capture U571. Can you General Public License "U571" into a game?

There's Rhino 3D file I think
http://www.es.rhino3d.com/gallery/marine/u571.htm

Lots of U571 images.
http://subtaktyka.neostrada.pl/galeria%2C%20sceny%20z%20filmow%20u571.htm


(If this comment was disrespectful, please report it.)

 
10/24/2004 5:13:29 AMD. Rijmenants

About that movie, Nice but way off track of reality. The Britisch had Enigma already at the beginning of the war thrue Polisch intelligence, who copied the machine by plans of a polish mechanic that worked for the Germans, and exercised analysing Enigma by pre-war codebooks, sold by the German Hans Thilo-Schmidt. The movie is a mix of the codebook captures by Britisch Navy of weatherships, like in Scapa Flow, and the attacts on U-boats like the famous U-110 from Lt Lempe by HMS Bulldog and U-559 by the HMS Petard. This only to provide Bletchley Park of codebookmaterial. The complete hystorie and analysis you can find in the book Station-X by Michael Smith. And THATS an exiting (and true) story!
(If this comment was disrespectful, please report it.)

 
10/24/2004 8:47:57 AMUlli

There's a scene in the movie "Das Boot" (probably "The Boat" in english) where actor Martin Semmelrogge operates an Enigma machine in the officer's mess amongst food leftovers and mildewy potatoes...
(If this comment was disrespectful, please report it.)

 
10/28/2004 9:42:47 AMD. Rijmenants

I have Uploaded on 10/28 the technical details and Enigma's history in the readme, more comments in the code, and did some small 'cosmetic' changes. Enjoy It ;-)
(If this comment was disrespectful, please report it.)

 
11/5/2004 12:15:23 PMDMJefff

(Default settings with dials reading AAA)
GREAT ENIGMA CODE 5 GLOBES
XCCGX NRBYVK KPFS 5 HBRUPK

(If this comment was disrespectful, please report it.)

 
11/7/2004 7:35:53 PMImam Gunawan

great one... very very cool interface and idea
(If this comment was disrespectful, please report it.)

 
11/8/2004 3:26:34 AMD. Rijmenants

I would like to thank all the nice people for voting this submission to the contests first place. I am pleased that is was appreciated by so many. THANK, THANKS, THANKS :-) :-) :-)
(If this comment was disrespectful, please report it.)

 
11/8/2004 8:22:51 AMGreek Freak

this program is THAT great that i wish i could vote again for it!!! this really rulez!
(If this comment was disrespectful, please report it.)

 
11/10/2004 1:15:29 PMShawn J Cox

Wow, this is totally great. I've accually been wanting to build a real enigma machine for a long time, this'll hold me over till I can and give me some real codes to try out when I do build one.
(If this comment was disrespectful, please report it.)

 
11/18/2004 2:19:11 AMTsubasa Kato

Outstanding UI and Graphic!
(If this comment was disrespectful, please report it.)

 
11/25/2004 1:35:39 AMGreek Freak

all i got to say is

OMG!
(Oh My GOD)

and i shall add

"It's Alive!"
lol..nice job...keep up good work..hope i see anotha update soon
(If this comment was disrespectful, please report it.)

 
11/25/2004 4:22:46 AMMatt Dudley

you should make the encrypted text send through winsock
(If this comment was disrespectful, please report it.)

 
1/12/2005 5:25:36 PM

Great Job Done. The UI is just wonderful
(If this comment was disrespectful, please report it.)

 
1/12/2005 5:27:42 PM

Fantastic! The code is just Fantastic
(If this comment was disrespectful, please report it.)

 
1/16/2005 3:20:43 PM

Hi, again.

You left a post on my forum as if you were coming back. Perhaps you forgot the URL.

Anyway, I am wondering if you ran the simple program "Proof the Navy and Army Enigmas were compatible" (or something like that)

:-)

Mac
http://www.network54.com/Forum/229185

(If this comment was disrespectful, please report it.)

 
4/20/2005 6:59:28 AM

Simply absolutely fantabulistic!! :-)))
(If this comment was disrespectful, please report it.)

 
4/29/2005 7:14:46 AM

It is fantastic programming and good work. :)
(If this comment was disrespectful, please report it.)

 
7/31/2005 8:39:04 AMJase

fantastic work... Super programmer...
so complex to understand!!!
(If this comment was disrespectful, please report it.)

 
12/24/2008 1:04:41 PMJocker

wow nice work is fantastic....good job
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.