PURPLE simulator and yet another Enigma simulator

Modern Fortran simulation of historical Japanese Cipher Machine 97-shiki-obun In-ji-ki Angooki Taipu B aka PURPLE at

and

Yet another enigma simulator, wehrmacht 3 rotor version with rings inc C++ at

They’re just console applications at present, but I’ve tested them and they’ve matched up with other simulators out there I’ve checked them against. I plan to jump off from these to some cgi-bin web applications and maybe some android apps too.
The historical rotors and reflectors used in the Enigma can be found many places. Digging up the mapping tables of the historical PURPLE stepping switches took more digging around, but can be found here.
http://cryptocellar.org/pubs/PurpleRevealed.pdf
A good description of the only 1 twenties relay at a time purple stepping switch progression can be found here.
http://scholarworks.sjsu.edu/cgi/viewcontent.cgi?article=1428&context=etd_projects

1 Like

The purple code is now 2/3 as many lines and 3 times faster average execution speed.
Mostly achieved by switching from character to integer processing. Also changed reading in the relay mappings from a sequential file to reading them from a formatted direct access file.

Really neat project. It’s super cool you wrote the PURPLE simulation in fortran.

Do you have access to any native fortran compilers? If so, which one(s) do you like?

I like gfortran a lot. I havn’t programmed a ton in fortran though.