Created
February 17, 2021 08:56
-
-
Save aliorhun/4338a6ae82b529af2982f7337b7aa3a1 to your computer and use it in GitHub Desktop.
sha512 test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "crypto/sha512" | |
| import "fmt" | |
| func main() { | |
| s := "sha512 test" | |
| h := sha512.New() | |
| h.Write([]byte(s)) | |
| bs := h.Sum(nil) | |
| fmt.Println(s) | |
| fmt.Printf("%x\n", bs) | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alorak@snorlax:~/work$ go run sha512.go