bksolutions/htpasswd

By bksolutions

Updated over 1 year ago

apache2 utils - htpasswd

Image
Security
Developer tools
0

286

bksolutions/htpasswd repository overview

Docker Image Size Docker Pulls Docker Stars Github stars Github forks Github issues Github last-commit

htpasswd

Content

Getting Started

These instructions will cover usage information and for the docker container

Usage

$ docker run --rm bksolutions/htpasswd <parameter>
$ docker run --rm bksolutions/htpasswd:latest <parameter>

Parameter

htpasswd

Usage:

htpasswd [-cimB25dpsDv] [-C cost] [-r rounds] passwordfile username
htpasswd -b[cmB25dpsDv] [-C cost] [-r rounds] passwordfile username password

htpasswd -n[imB25dps] [-C cost] [-r rounds] username
htpasswd -nb[mB25dps] [-C cost] [-r rounds] username password
  • -c Create a new file.
  • -n Don't update file; display results on stdout.
  • -b Use the password from the command line rather than prompting for it.
  • -i Read password from stdin without verification (for script usage).
  • -m Force MD5 hashing of the password (default).
  • -2 Force SHA-256 hashing of the password (secure).
  • -5 Force SHA-512 hashing of the password (secure).
  • -B Force bcrypt hashing of the password (very secure).
  • -C Set the computing time used for the bcrypt algorithm (higher is more secure but slower, default: 5, valid: 4 to 17).
  • -r Set the number of rounds used for the SHA-256, SHA-512 algorithms (higher is more secure but slower, default: 5000).
  • -d Force CRYPT hashing of the password (8 chars max, insecure).
  • -s Force SHA-1 hashing of the password (insecure).
  • -p Do not hash the password (plaintext, insecure).
  • -D Delete the specified user.
  • -v Verify password for the specified user.

Example

Create password
$ docker run --rm bksolutions/htpasswd -B -n -b -C 10  <username> <password>

Docker

  • --rm Remove container after exit

htpasswd

  • -B Force bcrypt
  • -n Display result on stdout
  • -b Use the password from the command line
  • -C 10 Set the computing time used for the bcrypt algorithm

Tag summary

Content type

Image

Digest

sha256:6acf575b9

Size

16.2 MB

Last updated

over 1 year ago

docker pull bksolutions/htpasswd:0.1.0