caddy-hash-password(8)

caddy-hash-password8

Hashes a password and writes base64

Usage

caddy hash-password [flags]

Overview

Convenient way to hash a plaintext password. The resulting hash is written to stdout as a base64 string.

--plaintext, when omitted, will be read from stdin. If Caddy is attached to a controlling tty, the plaintext will not be echoed.

--algorithm may be bcrypt or scrypt. If scrypt, the default parameters are used.

Use the --salt flag for algorithms which require a salt to be provided (scrypt).

Note that scrypt is deprecated. Please use 'bcrypt' instead.

Options

--algorithm="bcrypt"
Name of the hash algorithm

-h, --help[=false]
help for hash-password

--plaintext=""
The plaintext password

--salt=""
The password salt

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

History

10-Aug-2026 Auto generated by spf13/cobra

From caddy 2.6.2-12+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.