bin/krypton in krypton-0.1.1 vs bin/krypton in krypton-0.1.2
- old
+ new
@@ -54,10 +54,11 @@
#puts Krypton::AESCrypt.decrypt(ARGV[ARGV.length - 2], ARGV[ARGV.length - 1], options[:outfile]) if options[:raw]
result = Krypton::AESCrypt.decrypt(Base64.decode64(ARGV[ARGV.length - 2]), ARGV[ARGV.length - 1], options[:outfile])
puts "#{ARGV[ARGV.length - 2] + ' => '}#{Paint[result.strip, '#2ecc71']}"
exit 0
when 'hash'
- puts "This feature is not implemented yet but is coming soon."
+ result = Krypton::SHA.hash(ARGV[ARGV.length - 1], options[:raw])
+ puts "#{ARGV[ARGV.length - 1] + ' => '}#{Paint[result.strip, '#2ecc71']}"
exit 0
else
puts "#{opt} is not a valid action!"
exit 1
end