Enigma, device used by the German military command to encode strategic messages before and during World War II. Here we imitate the device electronically!
- Clone down the repo
- For encrypting run:
ruby lib/encrypt.rb message.txt encrypted.txt
if your encryption key was 6476
- For decryption run:
ruby lib/decrypt.rb encrypted.txt decrypted.txt 6476