10 lines
418 B
Bash
10 lines
418 B
Bash
|
#!/binb/ash
|
||
|
|
||
|
# Set the password you want to use
|
||
|
PASSWORD="12m0nk3ys"
|
||
|
|
||
|
# Use htpasswd to create a bcrypt hash of the password
|
||
|
HASHED_PASSWORD=$(htpasswd -nbBC 10 "" "$PASSWORD" | tr -d ':\n')
|
||
|
|
||
|
# Create the user in the SQLite database
|
||
|
sqlite3 your_database.db "INSERT INTO users (username, password, email, email, email, email, email, email, email, email, email) VALUES ('boxuser', '$HASHED_PASSWORD','boxuser@r8z.us');"
|