Files
pairgoth/create-user.sh
2024-02-19 23:32:55 +01:00

10 lines
222 B
Bash
Executable File

#!/bin/bash
read -rp 'email: ' EMAIL
read -rp 'password: ' PASSWORD
ENCPASS=$(echo -n $PASSWORD | sha256sum)
ENCPASS=${ENCPASS% -}
sqlite3 pairgoth.db "INSERT INTO cred (email, password) VALUES ('$EMAIL', '$ENCPASS')"