def encrypt(attribute, value)
      encrypted_attributes[attribute.to_sym][:operation] = :encrypting
      encrypted_attributes[attribute.to_sym][:value_present] = self.class.not_empty?(value)
      self.class.encrypt(attribute, value, evaluated_attr_encrypted_options_for(attribute))
    end
def encrypt(attribute, value)
      encrypted_attributes[attribute.to_sym][:operation] = :encrypting
      encrypted_attributes[attribute.to_sym][:value_present] = self.class.not_empty?(value)
      self.class.encrypt(attribute, value, evaluated_attr_encrypted_options_for(attribute))
    end
Encrypts a value for the attribute specified using options evaluated in the current object's scope

 Example

  class User
    attr_accessor :secret_key
    attr_encrypted :email, key: :secret_key

    def initialize(secret_key)
      self.secret_key = secret_key
    end
  end

  @user = User.new('some-secret-key')
  @user.encrypt(:email, 'test@example.com')