Created
January 7, 2016 00:50
-
-
Save jyap808/2b00596839fc8fa86f80 to your computer and use it in GitHub Desktop.
Blake 256 hash
This file contains 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 ( | |
"encoding/hex" | |
"fmt" | |
"github.com/decred/blake256" | |
) | |
func main() { | |
s := "The quick brown fox jumps over the lazy dog" | |
h := blake256.New() | |
h.Write([]byte(s)) | |
hash := hex.EncodeToString(h.Sum(nil)) | |
fmt.Println("s:", s) | |
fmt.Println("h:", hash) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment