Class: ActiveRecord::Encryption::NullEncryptor
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/active_record/encryption/null_encryptor.rb |
Overview
An encryptor that won’t decrypt or encrypt. It will just return the passed values
Instance Method Summary
Instance Method Details
#decrypt(encrypted_text, key_provider: nil, cipher_options: {})
[ GitHub ]# File 'activerecord/lib/active_record/encryption/null_encryptor.rb', line 12
def decrypt(encrypted_text, key_provider: nil, cipher_options: {}) encrypted_text end
#encrypt(clean_text, key_provider: nil, cipher_options: {})
[ GitHub ]# File 'activerecord/lib/active_record/encryption/null_encryptor.rb', line 8
def encrypt(clean_text, key_provider: nil, cipher_options: {}) clean_text end
#encrypted?(text) ⇒ Boolean
# File 'activerecord/lib/active_record/encryption/null_encryptor.rb', line 16
def encrypted?(text) false end