Skip to Content Skip to Search

class ActiveRecord::Encryption::NullEncryptor

An encryptor that won’t decrypt or encrypt. It will just return the passed values

Public instance methods

Source code GitHub
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 20
def binary?
  false
end
Source code GitHub
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 12
def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
  encrypted_text
end
Source code GitHub
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 8
def encrypt(clean_text, key_provider: nil, cipher_options: {})
  clean_text
end
Source code GitHub
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 16
def encrypted?(text)
  false
end

Definition files