This commit is contained in:
2026-05-23 05:15:29 -06:00
parent c081716207
commit 43f840140c
3 changed files with 2 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -e
attrib_hash=$(cat "./attribution.sha512")
echo "enter passphrase to test"
read passphrase
echo
tested_hash=$( ( echo -n "$passphrase"; cat "./contents.7z" ) | sha512sum | awk '{print $1}')
if [[ "$attrib_hash" == "$tested_hash" ]]; then
echo -e "\n\nAttribution With Password $passphrase: \033[0;32mOK!\033[0m\n\n"
else
echo -e "Attribution With Password $passphrase: \033[0;31mFAIL!\033[0m"
fi