summaryrefslogtreecommitdiff
path: root/stacks/auth/util/genhash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/auth/util/genhash.sh')
-rw-r--r--stacks/auth/util/genhash.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/stacks/auth/util/genhash.sh b/stacks/auth/util/genhash.sh
new file mode 100644
index 0000000..d8202ee
--- /dev/null
+++ b/stacks/auth/util/genhash.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -euo pipefail
+
+read -rp "Enter a password for the new user: " PASSWORD
+HASHED=$(docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password "${PASSWORD}")
+
+printf "Password: %s\n" "${PASSWORD}"
+printf "Hash: %s\n" "${HASHED}"