method
decrypt
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Encryption::Encryptor
decrypt(encrypted_text, key_provider: default_key_provider, cipher_options: {})public
Decrypts a clean_text and returns the result as clean text
Options
- :key_provider
-
Key provider to use for the encryption operation. It will default to +ActiveRecord::Encryption.key_provider+ when not provided
- :cipher_options
-
Cipher-specific options that will be passed to the Cipher configured in +ActiveRecord::Encryption.cipher+