verify.go 193 B

123456789101112
  1. package main
  2. import (
  3. "crypto/sha1"
  4. "time"
  5. )
  6. // 简单的一个校验值
  7. func getverifyval() []byte {
  8. b := sha1.Sum([]byte(time.Now().Format("2006-01-02 15") + *verifyKey))
  9. return b[:]
  10. }