Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeArgon2id ¶
func GenerateRandomBytes ¶
func VerifyArgon2id ¶
Types ¶
type Argon2IdKey ¶
type Argon2IdKey struct {
// contains filtered or unexported fields
}
func NewArgon2IdKeyFromSecret ¶
func NewArgon2IdKeyFromSecret(secret []byte) (Argon2IdKey, error)
func NewArgon2IdKeyFromString ¶
func NewArgon2IdKeyFromString(encoded string) (Argon2IdKey, error)
func (Argon2IdKey) String ¶
func (k Argon2IdKey) String() string
func (Argon2IdKey) Verify ¶
func (k Argon2IdKey) Verify(secret []byte) bool
type Argon2Params ¶
type Argon2Params struct {
// contains filtered or unexported fields
}
type KeyAndIv ¶
type KeyAndIv struct {
// contains filtered or unexported fields
}
func NewKeyAndIv ¶
func NewKeyAndIvFromBytes ¶
type SessionJwtClaims ¶
type SessionJwtConverter ¶
type SessionJwtConverter struct {
// contains filtered or unexported fields
}
func NewSessionJwtConverter ¶
func NewSessionJwtConverter(kid string, priv *rsa.PrivateKey, pub map[string]*rsa.PublicKey) *SessionJwtConverter
func (*SessionJwtConverter) ReadJWT ¶
func (c *SessionJwtConverter) ReadJWT(jwtStr string) (SessionJwtClaims, time.Time, error)
func (*SessionJwtConverter) WriteJWT ¶
func (c *SessionJwtConverter) WriteJWT(claims SessionJwtClaims, exp time.Time) (string, error)
Click to show internal directories.
Click to hide internal directories.