NAME

Database::BI::Command::password - Make the password_hash for the login

VERSION

0.023.1

SYNOPSIS

Usage: script/database-bi password

  script/database-bi password                  # asks twice, without echo
  printf '%s\n' "$PW" | script/database-bi password   # from a script

DESCRIPTION

Asks for a password and prints the password_hash line for database_bi.conf. With that line in place, every page asks for the password (see "Logging in" in Database::BI). Only the hash is printed; the password is not stored anywhere.

METHODS

run

API SPECIFICATION

INPUT

@args: none

OUTPUT

Prints password_hash => '...', on STDOUT. Croaks with the usage when given arguments, and with a message from %Database::BI::Command::password::MESSAGES when no password is given or when the two typed at a terminal differ.

AUTHOR

Nigel Horne <njh@nigelhorne.com>

LICENCE AND COPYRIGHT

Copyright 2026 Nigel Horne.

Usage is subject to the GPL2 licence terms.