Documentation ¶
Overview ¶
Package crypto contains utility functions for hashing and JWTs
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrJwtVerificationKeyNotSet = errors.New("no key set for JWT verification")
)
General error messages from JWT utilities.
View Source
var (
ErrMalformedSha256 = errors.New("malformed sha256")
)
General error messages from the hash utilities.
Functions ¶
func IsValidSha256 ¶
Check if a string value is a valid SHA256 hash.
func RunJwtChecks ¶
Check a JWT by parsing, validating, and verifying.
JWT parsing, validation, and verification are configurable.
func Sha256FromString ¶
Get the SHA256 hash digest of a string value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.