Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- //"fmt"
- "log"
- "math/rand"
- "time"
- "crypto/sha256"
- //"strconv"
- )
- func main() {
- rand.Seed(time.Now().UnixNano())
- hashData := []byte(string(time.Now().UnixNano()) + "password")
- hashResult := sha256.Sum256(hashData)
- log.Print(string(hashResult[:]))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement