function makeSalt() {
# Create variable length passwords
LC_CTYPE=C;
local saltine=$(tr -dc 'A-Za-z0-9_@#$%^&*~!?;`./|:{} <>[]()-+=' < /dev/urandom | head -c 64)
if [[ $(echo ${saltine} | grep -P '({%|%}|{#|#}|{{|}}|##)') ]]; then
makeSalt;
else
echo "${saltine}";
fi
}
# you can throw the funtion or source the file
# just store the output to a variable
# AUTH_KEY="$(makeSalt)"
# SECURE_AUTH_KEY="$(makeSalt)"
# ...