Added script to generate password hashes.

This commit is contained in:
baldo 2022-07-11 13:24:15 +02:00
commit bc304d9bfa
3 changed files with 48 additions and 1 deletions

23
bin/mkpasswd.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"
while :; do
read -sp "Password: " password
echo
read -sp "Confirm: " confirmation
echo
if [[ "$password" == "$confirmation" ]]; then
break
fi
echo
echo "Passwords do not match, try again."
echo
done
exec node ./bcrypt.js <<<"$password"