Thanks to a comment left in my blog, I realized that my Enigma simulator didn't perfectly replicate the operation of a real Enigma. I have updated the code and you can download it from here. If you simply want to run the simulator, click here.
You'll notice that the letters on the rotor wheels now appear in alphabetical order. I originally had the letters scrambled, thinking they were that way on the real Enigma. (They weren't.) I have tested the revised simulator fairly extensively and everything appears to be in working order. Let me know if you discover otherwise!
Here's a test message for you to decrypt:
DOMZUY
Before you begin typing, set the rotors to A-B-C and connect E to N, A to Z, and I to L on the plugboard.
On Nov 12 2008 12:08 PMBy jprosise
Did you mean DOAZUY ?
In this issue: Pencho Popadiyn, Dan Wahlin, Lee, Karl Erickson, Larent Bugnion, Manish Dalal, and Adam
rotors to A-B-C and connect E to N, A to Z, and I to L on the plugboard ???
Problem bei international use in Page.xaml.cs
solved by introducing Numberformat
private Rectangle CreateConnector(double x, double y, double length, double angle)
....
// das template enthält . als Trennzeichen
CultureInfo ci = new CultureInfo("en");
NumberFormatInfo nfi = ci.NumberFormat;
string xamlstring = String.Format(nfi,template, length, x, y, angle);
Rectangle rect = (Rectangle)XamlReader.Load(xamlstring);
hth
willib