#!/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