11 lines
162 B
Bash
Executable File
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}'
|