This commit is contained in:
nemunaire 2021-02-13 18:34:44 +01:00
commit 2f4cc04db2
7 changed files with 30 additions and 29 deletions

View file

@ -5,7 +5,7 @@ import (
"fmt"
)
func GenerateToken(pkey []byte, id int, a... []byte) ([]byte, error) {
func GenerateToken(pkey []byte, id int, a ...[]byte) ([]byte, error) {
h := sha512.New()
h.Write([]byte(fmt.Sprintf("%x", pkey)))