pronounsfu/scripts/genkey/main.go

21 lines
225 B
Go
Raw Normal View History

2022-05-02 08:19:37 -07:00
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)
}