method

decrypt

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+