Class: ActiveRecord::Encryption::EncryptingOnlyEncryptor

Inherits:
Encryptor show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/encrypting_only_encryptor.rb', line 7

def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
  encrypted_text
end