Method: Krypton::AESCrypt.decrypt
- Defined in:
- lib/core/aes.rb
.decrypt(message, password, outfile = '') ⇒ Object
14 15 16 17 18 19 |
# File 'lib/core/aes.rb', line 14 def self.decrypt(, password, outfile='') base64_decoded = Base64.decode64(.to_s.strip) d = self.decrypt_data(base64_decoded, self.key_digest(password), nil, "AES-256-CBC") File.write(outfile, d) unless outfile == '' || outfile.nil? d end |