класс ActiveRecord::Encryption::NullEncryptor
Шифратор, который не будет дешифровать или шифровать. Он просто вернёт переданные значения
Публичные методы экземпляра
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 20 def binary? false end
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 12
def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
encrypted_text
end # File activerecord/lib/active_record/encryption/null_encryptor.rb, line 8
def encrypt(clean_text, key_provider: nil, cipher_options: {})
clean_text
end # File activerecord/lib/active_record/encryption/null_encryptor.rb, line 16 def encrypted?(text) false end
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.