class ActiveSupport::EncryptedFile

def read

decrypted or verified.
- ActiveSupport::MessageEncryptor::InvalidMessage if the content cannot be
if the key is missing.
- MissingContentError if the encrypted file does not exist or otherwise
- MissingKeyError if the key is missing and +raise_if_missing_key+ is true.
Raises:

Reads the file and returns the decrypted content.
def read
  if !key.nil? && content_path.exist?
    decrypt content_path.binread
  else
    raise MissingContentError, content_path
  end
end