Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RsaKey ¶
RsaKey is the instantiated key to generate JWT tokens with. Important method is GenerateJWT
func NewRsaKey ¶
func NewRsaKey() *RsaKey
NewRsaKey generates a new RSA key based on a 2048 byte length
func (*RsaKey) GenerateJWT ¶
GenerateJWT uses the RSAKey and user input to generate a JWT token. It returns the token in []byte form
func (*RsaKey) PrintPublicPem ¶
PrintPublicPem returns the public key as []byte in pem format.
Click to show internal directories.
Click to hide internal directories.