htbolt

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2015 License: MIT Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/boltdb/bolt
Package bolt implements a low-level key/value store in pure Go.
Package bolt implements a low-level key/value store in pure Go.
_workspace/src/golang.org/x/crypto/bcrypt
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
_workspace/src/golang.org/x/crypto/blowfish
Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.
Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.
_workspace/src/golang.org/x/crypto/ssh/terminal
Package terminal provides support functions for dealing with terminals, as commonly found on UNIX systems.
Package terminal provides support functions for dealing with terminals, as commonly found on UNIX systems.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL