Last active
November 30, 2019 21:18
-
-
Save SharkyRawr/8aef24790589352f39a1f7233ca4eff5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash -e | |
export GPG_TTY=$(tty) | |
KEY=12CDBA2124EC19869892D6175C29252265360140 | |
if [ ! -f "$1" ]; then | |
echo "Please specify a file!" | |
exit 1 | |
fi | |
echo "$1" | |
FSIZE=`stat --printf="%s" "$1"` | |
dd if="$1" bs=1M | pv -s $FSIZE | gpg -s -e -u "$KEY" -r "$KEY" -z 0 > "$1.gpg" | |
gpg --decrypt "$1.gpg" > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment