mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 04:53:50 +00:00
13 lines
193 B
Go
Executable File
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[:]
|
|
}
|