diff --git a/tools/gen-salt.sh b/tools/gen-salt.sh index 17e749e..92a5322 100755 --- a/tools/gen-salt.sh +++ b/tools/gen-salt.sh @@ -6,7 +6,5 @@ else char_num=64; fi -cat /dev/urandom | tr -dc 'a-zA-Z0-9!@#$%^&*' | fold -w $char_num | head -n 1 | systemd-creds encrypt -p - /tmp/salt - -cat /tmp/salt -rm /tmp/salt \ No newline at end of file +cat /dev/urandom | tr -dc 'a-zA-Z0-9!@#$%^&*' | fold -w $char_num \ + | head -n 1 | systemd-creds encrypt -qp --name=salt - - 2> /dev/null \ No newline at end of file