1
0
mirror of https://github.com/ehang-io/nps synced 2025-10-13 13:19:47 +08:00
nps/verify.go
2018-11-04 23:19:22 +08:00

13 lines
193 B
Go
Executable File

package main
import (
"crypto/sha1"
"time"
)
// 简单的一个校验值
func getverifyval() []byte {
b := sha1.Sum([]byte(time.Now().Format("2006-01-02 15") + *verifyKey))
return b[:]
}