mayhappenz
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# packages: 7zip, shred, secure-delete, cracklib-runtime, openssl, curl
|
||||
set -o errtrace
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
IFS=$'\n\t'
|
||||
unix_seconds=$(date +%s)
|
||||
key_path=".private_ed25519_${unix_seconds}"
|
||||
attribution_keystore=".attribution_passphrase_${unix_seconds}"
|
||||
@@ -240,7 +239,7 @@ if [[ -z "$random" || "$random" =~ ^[nN]$ ]]; then
|
||||
echo -e "No random data added. ${GREEN}OK!${RESET}\n"
|
||||
else
|
||||
printf 'random: adding 1/2 random blocks of data (32 bytes) to outer archive...\n'
|
||||
openssl rand -out "$out_dir/.$RANDOM" 32 >/dev/null 2>&1
|
||||
openssl rand -out "$out_dir/.$RANDOM" >/dev/null 2>&1
|
||||
checkcode $?
|
||||
|
||||
printf 'random: adding 2/2 random blocks of data (32 bytes) to inner archive...\n'
|
||||
|
||||
Reference in New Issue
Block a user