module Encryptor

def self.encrypt(*args)

encrypted_value = Encryptor.encrypt('some string to encrypt', :key => 'some secret key')
# 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