method

decrypt

rails latest stable - Class: ActiveRecord::Encryption::Cipher
decrypt(encrypted_message, key:)
public

Decrypt the provided Message.

When key is an Array, it will try all the keys raising a +ActiveRecord::Encryption::Errors::Decryption+ if none works.