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 Attribute Summary

Attributes inherited from Encryptor

#compressor

Instance Method Summary collapse

Methods inherited from Encryptor

#binary?, #compress?, #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