Skip to content

kelseyhightower/htbolt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htbolt - Manipulate boltdb password databases

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.

Usage

Add or update a user entry.

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

List all users

htbolt -l -f .boltpasswd
kelsey # basic auth user account 

Verify an username and password.

If valid exit code will be set to 0.

htbolt -v -f .boltpasswd -u kelsey

Delete a user

htbolt -x -f .boltpasswd -u kelsey

About

Manipulate boltdb password databases

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages