November 2008
Intermediate to advanced
208 pages
4h 32m
English
This code is structured much like the encryption algorithm, so I will focus on the differences between the two. I am using the same algorithm for decryption as used during encryption. As mentioned earlier, you can use any number of encryption algorithms—just be sure to use the corresponding decryption algorithm. Don't forget your password, or else you will have to write your own brute force script if you ever want to see your data again!
require 'crypt/blowfish'
unless ARGV[0]
puts "Usage: ruby decrypt.rb <Encrypted_filename.ext>"
puts "Example: ruby decrypt.rb Encrypted_secret.stuff"
exit
end
filename ...Read now
Unlock full access