/** * @Author: jager * @Email: lhj168os@gmail.com * @File: utils * @Date: 2021/12/31 4:41 下午 * @package: utils * @Version: v1.0.0 * * @Description: * */ package utils import ( "fmt" "github.com/jageros/hawox/encrypt" "time" ) func GenSecret(uid string) string { return encrypt.Md5(fmt.Sprintf("%s%d", uid, time.Now().Unix())) }