Updates to `dd` and `openssl` invocations

master
BrainwreckedTech 3 years ago
parent 6553730ca4
commit fe517fd7f6

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

Loading…
Cancel
Save