die() { echo "$@" >&2 exit 1 } magic='$z$' redis_socket=$1 read -p "Username: " username read -s -p "Password: " password echo read -s -p "Confirm your password: " password_conf echo if [[ $password != $password_conf ]]; then die "Passwords don't match" fi salt=$(tr -dc A-Za-z0-9