Skip to content

Instantly share code, notes, and snippets.

@thirdgen88
thirdgen88 / generate-gw-password-hash.sh
Last active May 12, 2023 11:13
Generate a salted hash of password for as Ignition GATEWAY_ADMIN_PASSWORD
#!/usr/bin/env bash
set -eo pipefail
# Global variables
declare -u AUTH_SALT
###############################################################################
# Processes password input and translates to salted hash
###############################################################################
function main() {