clair/vendor/github.com/fernet/fernet-go/cmd/fernet-keygen/main.go
2016-02-24 16:36:45 -05:00

20 lines
240 B
Go

package main
import (
"fmt"
"log"
"github.com/fernet/fernet-go"
)
func main() {
log.SetFlags(0)
log.SetPrefix("fernet: ")
var key fernet.Key
if err := key.Generate(); err != nil {
log.Fatal(err)
}
fmt.Println(key.Encode())
}