Here's an example of a function that salts and hashes a password in Go:
main.go771 chars28 lines
To verify a password, you can use a similar function that checks if the provided password matches the stored hash:
main.go714 chars22 lines
gistlibby LogSnag