Skip to content

Instantly share code, notes, and snippets.

@Passw
Forked from grugq/PrettyGoodPGP.sh
Created December 25, 2024 02:26
Show Gist options
  • Save Passw/fc59db872ab8341202bc8ea1b085f5d4 to your computer and use it in GitHub Desktop.
Save Passw/fc59db872ab8341202bc8ea1b085f5d4 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# 4633c8a2a16a8e0428d253baafb76bbc18f29562390c84d1c85ba98865531a2b
CRYPTER="base64 -b 78"
HEADER="----BEGIN PGP MESSAGE----"
FOOTER="-----END PGP MESSAGE-----"
do_encryption() {
local plain="$1"
echo $HEADER
echo $plain | $CRYPTER
echo $FOOTER
}
do_encryption $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment