Documentation
¶
Index ¶
- func GenerateKey32() (key [32]byte)
- func GenerateSalt4() (salt [4]byte)
- func New51(key [32]byte, salt [4]byte, t time.Time) ([51]byte, error)
- func NewAsString51(key [32]byte, salt [4]byte, t time.Time) (string, error)
- func Verify51(token [51]byte, key [32]byte, validFor time.Duration) (ok bool, err error)
- func VerifyFromString51(tokenAsString string, key [32]byte, validFor time.Duration) (ok bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey32 ¶ added in v0.2.0
func GenerateKey32() (key [32]byte)
func GenerateSalt4 ¶ added in v0.2.0
func GenerateSalt4() (salt [4]byte)
func NewAsString51 ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.