method
read
rails latest stable - Class:
ActiveSupport::EncryptedFile
read()public
Reads the file and returns the decrypted content.
Raises:
-
MissingKeyError if the key is missing and raise_if_missing_key is true.
-
MissingContentError if the encrypted file does not exist or otherwise if the key is missing.
-
ActiveSupport::MessageEncryptor::InvalidMessage if the content cannot be decrypted or verified.