Skip to content

BCrypt Password Hashing and Checking

License

Notifications You must be signed in to change notification settings

jimrazmus/password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

password

Go Report Card Go Reference License

Summary

Password hashing and checking using bcrypt.

Installation

go get github.com/jimrazmus/password

Usage

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")
}

Contributing

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.

Author

Jim Razmus II

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.