Created
June 28, 2018 02:13
-
-
Save kentquirk/bea4133c0500bf5942ad7de56772e71a to your computer and use it in GitHub Desktop.
hashit function in go
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
func hashit(s string) []byte { | |
h := sha256.New() | |
h.Write([]byte(s)) | |
return h.Sum(nil) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment