Updates to dd
and openssl
invocations
This commit is contained in:
parent
6553730ca4
commit
fe517fd7f6
4
filldev
4
filldev
@ -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…
x
Reference in New Issue
Block a user