2025-02-09 03:34:39 +02:00

11 lines
162 B
Bash
Executable File

#!/usr/bin/env bash
PASSWORD="$1"
if [ -z "${PASSWORD}" ]
then
echo "Missing password"
exit 1
fi
htpasswd -bnBC 8 "" ${PASSWORD} | grep -oP '\$2[ayb]\$.{56}'