Password hashing and checking using bcrypt.
go get github.com/jimrazmus/password
import github.com/jimrazmus/password
bcrypted, err := HashPassword("your_password")
if err != nil {
log.Fatal(err)
}
// store 'bcrypted' somewhere for later use
// ... later ...
if !CheckPassword("your_password", bcrypted) {
log.Fatal("Incorrect password")
}
Please follow the Conventional Commits specification for your commit messages. Commit type options include: feat, fix, build, chore, ci, docs, style, refactor, perf, and test.
Open a pull request when you have completed your work and want it reviewed for inclusion.
Jim Razmus II
This project is licensed under the MIT License - see the LICENSE.txt file for details.