Eric Bower
·
25 Mar 24
main.go
1package main
2
3import (
4 "crypto/rand"
5 "encoding/hex"
6 "fmt"
7)
8
9func main() {
10 secret := make([]byte, 64)
11 _, err := rand.Read(secret)
12 if err != nil {
13 panic(err)
14 }
15 fmt.Println(hex.EncodeToString(secret))
16}