Spec-Zone.ru › Ruby on Rails 8.1

class ActiveRecord::Encryption::NullEncryptor

Родительский класс:
Object

Шифратор, который не расшифровывает и не шифрует данные. Он просто возвращает переданные значения

Открытые методы экземпляра

binary? () Показать исходный код
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 20
def binary?
  false
end
decrypt (encrypted_text, key_provider: nil, cipher_options: {}) Показать исходный код
# 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: {}) Показать исходный код
# 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) Показать исходный код
# 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.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API