pronounss/scripts/genkey/main.go
2022-05-02 17:19:37 +02:00

20 lines
225 B
Go

package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
)
func main() {
b := make([]byte, 64)
_, err := rand.Read(b)
if err != nil {
panic(err)
}
s := base64.URLEncoding.EncodeToString(b)
fmt.Println(s)
}