Class: ActiveRecord::Encryption::EncryptingOnlyEncryptor
- Defined in:
- lib/active_record/encryption/encrypting_only_encryptor.rb
Overview
An encryptor that can encrypt data but can’t decrypt it.
Instance Method Summary collapse
Methods inherited from Encryptor
#binary?, #encrypt, #encrypted?, #initialize
Constructor Details
This class inherits a constructor from ActiveRecord::Encryption::Encryptor
Instance Method Details
#decrypt(encrypted_text, key_provider: nil, cipher_options: {}) ⇒ Object
7 8 9 |
# File 'lib/active_record/encryption/encrypting_only_encryptor.rb', line 7 def decrypt(encrypted_text, key_provider: nil, cipher_options: {}) encrypted_text end |