sum updoots
This commit is contained in:
@@ -68,6 +68,7 @@ cd ..
|
|||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo "Enter attribution passphrase:"
|
echo "Enter attribution passphrase:"
|
||||||
|
echo
|
||||||
read -r -s attribution_passphrase
|
read -r -s attribution_passphrase
|
||||||
echo
|
echo
|
||||||
echo "Enter attribution passphrase again:"
|
echo "Enter attribution passphrase again:"
|
||||||
@@ -108,6 +109,7 @@ mv out.7z "archives/verifiable_archive_${unix_seconds}.7z" > /dev/null 2>&1
|
|||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo "input keystore passphrase:"
|
echo "input keystore passphrase:"
|
||||||
|
echo
|
||||||
read -r -s keystore_passphrase
|
read -r -s keystore_passphrase
|
||||||
echo
|
echo
|
||||||
echo "input keystore passphrase (again):"
|
echo "input keystore passphrase (again):"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ echo
|
|||||||
tested_hash=$( ( echo -n "$passphrase"; cat "./contents.7z" ) | sha512sum | awk '{print $1}')
|
tested_hash=$( ( echo -n "$passphrase"; cat "./contents.7z" ) | sha512sum | awk '{print $1}')
|
||||||
|
|
||||||
if [[ "$attrib_hash" == "$tested_hash" ]]; then
|
if [[ "$attrib_hash" == "$tested_hash" ]]; then
|
||||||
echo -e "\n\nAttribution With Password $passphrase: \033[0;32mOK!\033[0m\n\n"
|
echo -e "Attribution With Password $passphrase: \033[0;32mOK!\033[0m"
|
||||||
else
|
else
|
||||||
echo -e "Attribution With Password $passphrase: \033[0;31mFAIL!\033[0m"
|
echo -e "Attribution With Password $passphrase: \033[0;31mFAIL!\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ echo
|
|||||||
tested_hash=$( ( echo -n "$passphrase"; cat "./contents.7z" ) | sha512sum | awk '{print $1}')
|
tested_hash=$( ( echo -n "$passphrase"; cat "./contents.7z" ) | sha512sum | awk '{print $1}')
|
||||||
|
|
||||||
if [[ "$attrib_hash" == "$tested_hash" ]]; then
|
if [[ "$attrib_hash" == "$tested_hash" ]]; then
|
||||||
echo -e "\n\nAttribution With Password $passphrase: \033[0;32mOK!\033[0m\n\n"
|
echo -e "Attribution With Password $passphrase: \033[0;32mOK!\033[0m"
|
||||||
else
|
else
|
||||||
echo -e "Attribution With Password $passphrase: \033[0;31mFAIL!\033[0m"
|
echo -e "Attribution With Password $passphrase: \033[0;31mFAIL!\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user