module Encryptor
def self.encrypt(*args)
# or
encrypted_value = Encryptor.encrypt(:value => 'some string to encrypt', :key => 'some secret key')
Example
Optionally accepts :iv and :algorithm options
Encrypts a :value with a specified :key
def self.encrypt(*args) crypt :encrypt, *args end