1
0

Rewrote gen-salt.sh in a right way.

This commit is contained in:
Alexander Andreev 2023-05-24 22:48:28 +04:00
parent 9c5bad04d4
commit 14efad4a4a
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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
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