Guest User

Untitled

a guest
Aug 14th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. sha256Key:=verifyEmail+":"+md5password+":"+dateStr
  2. hasherSha256 := sha1.New()
  3. hasherSha256.Write([]byte(sha256Key))
  4. sha256Val:=hex.EncodeToString(hasherSha256.Sum(nil))
  5.  
  6. key=$( echo -n "$verifyEmail:$md5PWD:$pwTime" | sha256sum)
  7. echo $key
  8.  
  9. now := time.Now().Unix()
  10. rem := now % 3600
  11. date := now-rem
  12. dateStr:=strconv.FormatInt(date,10)
  13.  
  14. hasherSha256 := sha1.New()
  15.  
  16. hasherSha256 := sha256.New()
  17.  
  18. digest := sha256.Sum256([]byte(sha256Key))
Add Comment
Please, Sign In to add comment