Rewrote gen-salt.sh in a right way.
This commit is contained in:
parent
9c5bad04d4
commit
14efad4a4a
@ -6,7 +6,5 @@ else
|
|||||||
char_num=64;
|
char_num=64;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat /dev/urandom | tr -dc 'a-zA-Z0-9!@#$%^&*' | fold -w $char_num | head -n 1 | systemd-creds encrypt -p - /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
|
||||||
cat /tmp/salt
|
|
||||||
rm /tmp/salt
|
|
Loading…
Reference in New Issue
Block a user