package
0.0.15
Repository: https://github.com/romnn/go-service.git
Documentation: pkg.go.dev

# Functions

CheckPasswordHash compares a password against its hash.
GenerateRSAKeyPair generates an RSA key pair.
HashPassword creates a cryptograhic hash of a password.
LoadJwkSetFromFile ...
MustHashPassword creates a cryptographic hash of a password or panics.
ParseJwkSet ...
ParseSigningKeyFromPEMData parses a private RSA signing key from PEM data.
ParseSigningKeyFromPEMFile parses a private RSA signing key from a PEM file.
ToJwks converts a RSA public key to a JWK set.
ToJwksJSON converts a RSA public key to a JSON encoded JWK set.
ToPEM converts a RSA private key into PEM format.

# Structs

Authenticator provides convenient methods for signing and validating JWT claims.
JWK encodes a JSON web key.
KeyConfig configures the keys that will be used for authentication.
RSAKeyPair is an RSA key pair.

# Interfaces

Claims defines the interface that custom JWT claim types must implement.