lab7: live stand integration fixes and verified evidence
This commit is contained in:
+2
-2
@@ -37,11 +37,11 @@ write_infra_secret() {
|
||||
|
||||
bcrypt_hash() {
|
||||
local password="$1"
|
||||
python3 -c '
|
||||
printf '%s' "$password" | python3 -c '
|
||||
import sys, bcrypt
|
||||
pw = sys.stdin.read().encode("utf-8")
|
||||
print(bcrypt.hashpw(pw, bcrypt.gensalt(rounds=10)).decode("ascii"), end="")
|
||||
' <<< "$password"
|
||||
'
|
||||
}
|
||||
|
||||
write_infra_secret postgres_superuser_password "$(openssl rand -hex 24)"
|
||||
|
||||
Reference in New Issue
Block a user