Enigma is an encryption/decryption program that writes or decrypts messages onto a .txt file
Enigma reads a message using File.IO and encrypts it to another file. This process can be reversed using the same files using a key and a date.
A user can write their message in the message.txt
file in the root directory. They are then able to encrypt/decrypt message like so:
Encryption
$ ruby ./lib/encrypt.rb message.txt encrypted.txt
Created 'encrypted.txt' with the key 82648 and date 240818
Decryption
$ ruby ./lib/decrypt.rb encrypted.txt decrypted.txt 82648 240818
Created 'decrypted.txt' with the key 82648 and date 240818
Algorithm-Based Encryption/Decryption
Encryption Example
Decrypted Message
-Voltaire
๐ค Matt Kragen
- Fork it (https://github.com/matt-kragen/enigma/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request