Updates to dd and openssl invocations

This commit is contained in:
BrainwreckedTech 2021-12-20 00:57:17 -05:00
parent 6553730ca4
commit fe517fd7f6

View File

@ -17,6 +17,6 @@ ${SEC} && echo "random data" || echo "zeros"
for DEV in "${DVC[@]}"; do
echo "${DEV}:"
${SEC} && openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt </dev/zero | sudo dd of=${DEV} bs=4M status=progress
${SEC} || sudo dd if=/dev/zero of=${DEV} bs=4M status=progress
${SEC} && openssl enc -aes-256-ctr -pbkdf2 -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt </dev/zero | sudo dd of=${DEV} bs=4M conv=notrunc status=progress
${SEC} || sudo dd if=/dev/zero of=${DEV} bs=4M conv=notrunc status=progress
done