class ActiveSupport::EncryptedFile::InvalidKeyLengthError

Overview

Raised when the key is not 32 hexadecimal characters.

Unlike Rails, this is also raised when reading. Rails stopped checking the key on the way in, which leaves a mistyped key surfacing as an OpenSSL failure further down; a wrong key must say so rather than turn into an empty config or a 404 somewhere else.

Defined in:

active_support/encrypted_file.cr

Constructors

Constructor Detail

def self.new(message = "Encryption key must be exactly #{EncryptedFile.expected_key_length} hexadecimal characters.") #