123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Encryption::EncryptingOnlyEncryptor

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Encryptor
Instance Chain:
self, Encryptor
Inherits: ActiveRecord::Encryption::Encryptor
Defined in: activerecord/lib/active_record/encryption/encrypting_only_encryptor.rb

Overview

An encryptor that can encrypt data but can’t decrypt it.

Constant Summary

Encryptor - Inherited

DECRYPT_ERRORS, ENCODING_ERRORS, THRESHOLD_TO_JUSTIFY_COMPRESSION

Instance Method Summary

Encryptor - Inherited

#decrypt

Decrypts a clean_text and returns the result as clean text.

#encrypt

Encrypts clean_text and returns the encrypted result.

#encrypted?

Returns whether the text is encrypted or not.

Instance Method Details

#decrypt(encrypted_text, key_provider: nil, cipher_options: {})

[ GitHub ]

  
# File 'activerecord/lib/active_record/encryption/encrypting_only_encryptor.rb', line 7

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