package jwt import "github.com/speps/go-hashids/v2" func HashidsEncode(num int) string { hd := hashids.NewData() hd.Salt = "fastgpthashids" hd.MinLength = 20 h, _ := hashids.NewWithData(hd) e, _ := h.Encode([]int{num}) return e //fmt.Println(e) //d, _ := h.DecodeWithError(e) //fmt.Println(d) }