14 lines
230 B
Text
14 lines
230 B
Text
|
#!/bin/sh
|
||
|
|
||
|
USERNAME="$1"
|
||
|
if [ "$USERNAME" == "" ]; then
|
||
|
printf "Username: "
|
||
|
read USERNAME
|
||
|
fi
|
||
|
printf "Password: "
|
||
|
stty -echo
|
||
|
read PASSWORD
|
||
|
stty echo
|
||
|
printf "\n"
|
||
|
printf "\0$USERNAME\0$PASSWORD" | base64 | tr -d '\n' | sha256sum
|