Files
Encrypt-Share-Attribution/setup.sh
T
2026-05-23 05:30:55 -06:00

33 lines
904 B
Bash

#!/bin/bash
echo "autoshredding these files:"
find . -type f \( -path ".git" -o -path "keystore" -o -path "archives" \) -prune \( -name "*.sha512" -o -name "checksums*" -o -name "private_*" -o -name ".*" -o -name "*.sig" -o -name "*.7z" -o -name "anonymous_signer" \) -print -exec shred -uz {} \;
echo $?
echo "nuking errant priv key files"
shred -uz private_*
echo $?
shred -uz *.pub
echo $?
shred -uz attribution_passphrase_*
echo $?
echo "autoshredding out"
srm -r -z -l -l ./out
echo $?
echo "rebuilding out"
mkdir -p out/contents
echo $?
echo "put files to verifiably archive in here" > out/contents/README.md
echo "# todo: make this nice" > ./out/README.md
cp test_validation_passphrase.txt out/test_validate_passphrase.sh
echo $?
chmod +x out/test_validate_passphrase.sh
echo $?
cp verify-everything.txt out/verify-everything.sh
echo $?
chmod +x out/verify-everything.sh
echo $?
echo done :3