Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sha256Key:=verifyEmail+":"+md5password+":"+dateStr
- hasherSha256 := sha1.New()
- hasherSha256.Write([]byte(sha256Key))
- sha256Val:=hex.EncodeToString(hasherSha256.Sum(nil))
- key=$( echo -n "$verifyEmail:$md5PWD:$pwTime" | sha256sum)
- echo $key
- now := time.Now().Unix()
- rem := now % 3600
- date := now-rem
- dateStr:=strconv.FormatInt(date,10)
- hasherSha256 := sha1.New()
- hasherSha256 := sha256.New()
- digest := sha256.Sum256([]byte(sha256Key))
Add Comment
Please, Sign In to add comment