The following is an example of how to hash & salt your passwords using the bcrypt package in Go. For this example I’m going to make a console application for the purposes of demonstrating how to take a password entered by a user and generate a salted hash with it. Once we’ve done this, I’ll go through comparing a password with its hashed version to verify whether or not the password is correct. St
![Password Hash & Salt Using Golang](https://cdn-ak-scissors.b.st-hatena.com/image/square/c8155fe8d5937be1ec1b290e1fe80a1fc3f1b8e9/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1146%2F1%2A293yGgsr6Vs4MQrrN9U96g.png)