module Encryptor::String

def decrypt(options = {})

Returns a new string containing the decrypted version of itself
def decrypt(options = {})
  Encryptor.decrypt(options.merge(:value => self))
end

def decrypt!(options ={})

Replaces the contents of a string with the decrypted version of itself
def decrypt!(options ={})
  replace decrypt(options)
end

def encrypt(options = {})

Returns a new string containing the encrypted version of itself
def encrypt(options = {})
  Encryptor.encrypt(options.merge(:value => self))
end

def encrypt!(options ={})

Replaces the contents of a string with the encrypted version of itself
def encrypt!(options ={})
  replace encrypt(options)
end