module Encryptor

def self.decrypt(*args)

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

Example

Optionally accepts :iv and :algorithm options

Decrypts a :value with a specified :key
def self.decrypt(*args)
  crypt :decrypt, *args
end