EnigmaEncrypto
This is my first checkpoint project done under the Andela Institute curriculum titled ENIGMA.
ENIGMA entails creation of an Ecryptor gem like the Ceasar cipher. Contains encrypt ruby file that when called with two file names as command line arguments, it encrypts the first file and saves in the other. Also contains decrypt ruby file that when called with two file names, date of creation and a key as command line arguments, it encrypts the first file and saves in the other. Also includes a little twist where you can actually crack an encrypted file without a key.
Installation
Add this line to your application's Gemfile:
gem 'enigma_encrypto'
And then execute:
$ bundle
Or install it yourself as:
$ gem install enigma_encrypto
Usage
To use add the directory of the bin folder of this gem to your Systems Path/Environment variables.
You can then call encrypt, decrypt or crack, on the file you want to work on, and also with a destination file name.
File to be encrypted, decrypted or cracked must be in your working directory.
Example: To call encrypt on a message.txt file in my desktop folder
$ cd desktop
$ encrypt .txt encrypted.txt
=>#Created encrypted.txt with the key 12345 and date 300815
You can also write the absolute path of the file if you dont want to change working directory.
$ encrypt desktop/.txt encrypted.txt
Contributing
- Fork it ( https://github.com/[andela-bebowe]/enigma_gem/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request