class ActiveSupport::EncryptedFile

def check_key_length

def check_key_length
  raise InvalidKeyLengthError if key&.length != self.class.expected_key_length
end