Added script to generate password hashes.
This commit is contained in:
parent
62df108999
commit
bc304d9bfa
3 changed files with 48 additions and 1 deletions
23
bin/mkpasswd.sh
Executable file
23
bin/mkpasswd.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue