From 3f1d7201bfc46ff9edaa109bc41b59908f99c23b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 6 Sep 2020 09:53:58 -0300 Subject: Refactor vps-configuration.nix: Split secrets from config and envsubst vars Also rename thingTLD to thingDomain. --- gen-hash.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 gen-hash.sh (limited to 'gen-hash.sh') diff --git a/gen-hash.sh b/gen-hash.sh new file mode 100755 index 0000000..774f9f9 --- /dev/null +++ b/gen-hash.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -Eeuo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")" + +mkpasswd -m sha-512 \ + "$(cat ./secrets/user-password.txt)" \ + "$(cat ./secrets/user-salt.txt)" \ + | tr -d '\n' \ + > ./secrets/passwords/user-hash.txt -- cgit v1.2.3