lib/fernet/secret.rb in fernet-2.0 vs lib/fernet/secret.rb in fernet-2.1

- old
+ new

@@ -1,11 +1,12 @@ require 'base64' +require_relative 'errors' module Fernet # Internal: Encapsulates a secret key, a 32-byte sequence consisting # of an encryption and a signing key. class Secret - class InvalidSecret < RuntimeError; end + class InvalidSecret < Fernet::Error; end # Internal - Initialize a Secret # # secret - the secret, optionally encoded with either standard or # URL safe variants of Base64 encoding