module Encryptor
def self.decrypt(*args)
# 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