Method: SimpleRecord::Encryptor.decrypt

Defined in:
lib/simple_record/encryptor.rb

.decrypt(options) ⇒ Object

Decrypts a :value with a specified :key

Optionally accepts :iv and :algorithm options

Example

decrypted_value = Huberry::Encryptor.decrypt(:value => 'some encrypted string', :key => 'some secret key')


32
33
34
# File 'lib/simple_record/encryptor.rb', line 32

def self.decrypt(options)
  crypt :decrypt, options
end