You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
358 B
Go
24 lines
358 B
Go
3 years ago
|
/**
|
||
|
* @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()))
|
||
|
}
|