added config options and nonce
This commit is contained in:
parent
1613055dfd
commit
473d54569c
10 changed files with 146 additions and 85 deletions
11
rand.go
Normal file
11
rand.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2025 Marius Schellenberger
|
||||
|
||||
package jwt
|
||||
|
||||
import "crypto/rand"
|
||||
|
||||
func key16() []byte {
|
||||
b := make([]byte, 16)
|
||||
rand.Read(b)
|
||||
return b
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue