class ActiveRecord::Encryption::ReadOnlyNullEncryptor
the wrong content.
and you want to make sure you won’t overwrite any encryptable attribute with
This is useful when you want to reveal ciphertexts for debugging purposes
A NullEncryptor
that will raise an error when trying to encrypt data
def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
def decrypt(encrypted_text, key_provider: nil, cipher_options: {}) encrypted_text end
def encrypt(clean_text, key_provider: nil, cipher_options: {})
def encrypt(clean_text, key_provider: nil, cipher_options: {}) raise Errors::Encryption, "This encryptor is read-only" end
def encrypted?(text)
def encrypted?(text) false end