Method: SimpleRecord::Encryptor.encrypt

Defined in:
lib/simple_record/encryptor.rb

.encrypt(options) ⇒ Object

Encrypts a :value with a specified :key

Optionally accepts :iv and :algorithm options

Example

encrypted_value = Huberry::Encryptor.encrypt(:value => 'some string to encrypt', :key => 'some secret key')


21
22
23
# File 'lib/simple_record/encryptor.rb', line 21

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