Class: ActiveRecord::Encryption::EncryptingOnlyEncryptor

Inherits:
Encryptor
  • Object
show all
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

#encrypt, #encrypted?

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