Here's an example of how to create a SHA512 hash from a string in Go:
main.go271 chars14 lines
To use this function, simply pass in the string you want to hash:
main.go111 chars6 lines
This will output the SHA512 hash of the string:
main.go129 chars2 lines
gistlibby LogSnag