Author Topic: Enigma Machine  (Read 9008 times)

0 Members and 1 Guest are viewing this topic.

Offline Wretchedlout

  • LV3 Member (Next: 100)
  • ***
  • Posts: 64
  • Rating: +6/-0
    • View Profile
Enigma Machine
« on: May 31, 2012, 06:30:09 pm »

 :hyper:
So far, as I have been working on this for the past few days and it has been going good.
But first let me explain what an enigma machine does and how.

Spoiler For Spoiler:
Ok, so first there is the 1. keypress. As you can see in the picture, are the keys (lol).
Then,the wires that take up the body of the box that are below the box which carry the current to the 2. plugboard. This can be seen in the front of the box as the wires that go from one peg hole to another. There are usually 10-13 wires but usually 10. There are actually 2 holes for each number, where the current comes from the keys, and fom the rotors. These are used to further scramble the code, and to make it almost unbreakable. Next, after the current goes through the plugboard it goes to the dials or 3. rotors. These are the main parts to the encryption process. Here is a good example of what the rotors do.

Bassically they look like this and "rotate" the code (randomly set one letter to another).

There are usually 3-4 of them.
So, as you saw in the first picture, the current goes through the 4. reflector. This, combined with the rotors makes the code further scrambled. Not only that but it turns it back through the rotors. Ok, final strech here. the current then goes back to the plugboard. It finnaly goes through the 5. lampboard. This is a fancy way of displaying the outputed code with lights.


So now all that, which is good and all but really has nothing against.

This is a method of decryption which looks at the frequency of each coded letter to show up and can tell what it is by determining how often it was used.
That is why the most important part on any Enigma Machine is that the rotors well, rotate.
This with encryption methods 2-4 make the Enigma Machine a VERY powerful tool of encryption. :w00t:

So anyway, I am making this in Basic and will implement all the functions of a real enigma machine.
1. Keypresses
2. Plugboard
3. Rotor 1
4. Rotor 2
5. Rotor 3
6. Rotor 4
7. Reflector
8. Rotor 4
9. Rotor 3
10. Rotor 2
11. Rotor 1
12. Plugboard
13. Display (output)

I will make this able to handle 128 (8*16) characters of encryption and decryption.

I will keep you posted with screenies.  ;D
« Last Edit: June 06, 2012, 06:07:00 pm by Wretchedlout »

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Enigma Machine
« Reply #1 on: May 31, 2012, 10:10:00 pm »
Sounds good I've always been interested in encryption especially the older kinds(because that what I understand :P )
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Wretchedlout

  • LV3 Member (Next: 100)
  • ***
  • Posts: 64
  • Rating: +6/-0
    • View Profile
Re: Enigma Machine
« Reply #2 on: June 06, 2012, 05:53:12 pm »
can you have
Code: [Select]
123->LRI(1
or do you need the end bracket?
« Last Edit: June 06, 2012, 05:53:27 pm by Wretchedlout »

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: Enigma Machine
« Reply #3 on: June 06, 2012, 05:57:21 pm »
You do not need the closing bracket.
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの