Skip to content

Instantly share code, notes, and snippets.

@grugq
Last active January 20, 2018 05:32
Show Gist options
  • Save grugq/5330cbb905e88ed7b9d371e639adb488 to your computer and use it in GitHub Desktop.
Save grugq/5330cbb905e88ed7b9d371e639adb488 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 $*
@Miladiir
Copy link

Miladiir commented Apr 5, 2017

Thanks, will be using this for my upcoming project MilkRoad, a hidden service to buy milk off strangers.
Check my GH and TWTR for more misinformation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment