An encryptor that wonβt decrypt or encrypt. It will just return the passed values
Methods
Instance Public methods
binary?()
π Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 20
def binary?
false
end
π See on GitHub
decrypt(encrypted_text, key_provider: nil, cipher_options: {})
π Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 12
def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
encrypted_text
end
π See on GitHub
encrypt(clean_text, key_provider: nil, cipher_options: {})
π Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 8
def encrypt(clean_text, key_provider: nil, cipher_options: {})
clean_text
end
π See on GitHub
encrypted?(text)
π Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 16
def encrypted?(text)
false
end
π See on GitHub