htbolt is used to manipulate a boltdb database used to store usernames and passwords for basic authentication of HTTP users. See the passwd package docs for usage with a HTTP server.
All passwords are stored using the bcrypt hashing algorithm.
htbolt -f .boltpasswd -u kelsey -c "basic auth user account"
Print the results to stdout and don't update the database:
htbolt -n -f .boltpasswd -u kelsey -c "basic auth user account"
{
"Comment": "basic auth user account",
"PasswordHash": "JDJhJDEwJDBwZVhuSmZwMVRNL2EvaEhmWTdrZmUwUXNkenhlOWhiWHJiSmd6djJOSkkzTWdEQ09vNEpl",
"Username": "kelsey"
}
htbolt -l -f .boltpasswd
kelsey # basic auth user account
If valid exit code will be set to 0.
htbolt -v -f .boltpasswd -u kelsey
htbolt -x -f .boltpasswd -u kelsey