lib/core/aes.rb in krypton-0.1.2 vs lib/core/aes.rb in krypton-0.1.3

- old
+ new

@@ -7,10 +7,9 @@ # Taken from https://github.com/Gurpartap/aescrypt/blob/master/lib/aescrypt.rb and improved for newew ruby versions def self.encrypt(message, password, outfile='') a = Base64.encode64(self.encrypt_data(message.to_s.strip, self.key_digest(password), nil, "AES-256-CBC")) File.write(outfile, a) unless outfile == '' || outfile.nil? a - end def self.decrypt(message, password, outfile='') base64_decoded = Base64.decode64(message.to_s.strip) d = self.decrypt_data(base64_decoded, self.key_digest(password), nil, "AES-256-CBC")