This project uses Ruby to build a tool for encrypting and decrypting messages.
Based on the rubric found at https://backend.turing.edu/module1/projects/enigma/rubric, my self assessment is that this project meets expectations in all categories.
- Practice breaking a program into logical components
- Build classes that demonstrate single responsibilities
- Test drive a well-designed Object Oriented solution
- Work with file i/o
Project is created with:
- Ruby version: 2.7.2
To run this program, save a copy of this repository locally. In the MacOS application 'Terminal,' navigate into the enigma directory. Then, run it using ruby (note: '$' is not typed).
- Clone the repo using the web url:
or with a password-protected SSH key:
$ git clone https://github.com/jamiejpace/enigma
$ git clone [email protected]:jamiejpace/enigma.git
- Change into the directory:
$ cd ../enigma
- Enter the message you would like to encrypt into the message.txt file, then run the encryption by entering the following into the terminal:
$ ruby ./lib/encrypt.rb message.txt encrypted.txt
- You can then decrypt the message by entering the following into the terminal using the same key and date used in the initial encryption:
$ ruby ./lib/decrypt.rb encrypted.txt decrypted.txt <key> <date>
Created by
✨ feel free to contact me! ✨