Skip to content

Instantly share code, notes, and snippets.

@greymd
Created September 20, 2016 18:05
Show Gist options
  • Save greymd/6683dd8d90a3bcfbb528a4a603ff245c to your computer and use it in GitHub Desktop.
Save greymd/6683dd8d90a3bcfbb528a4a603ff245c to your computer and use it in GitHub Desktop.
Binary encrypted message
# How to encrypt
$ banner yes | sed 'y/# /10/' | awk NF | perl -nle 'print $_."0"x9' | grep -oE '^.{24}' | tr -d '\n' | perl -nle 'printf pack("B*",$_)' | base64
# How to decrypt
$ echo 'In48FEBACHw8CEACCEBCCH48' | base64 -d | xxd -b -c 3 | awk '$1="";$NF="";1' | sed 'y/01/ y/'
y y yyyyyy yyyy
y y y y
y yyyyy yyyy
y y y
y y y y
y yyyyyy yyyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment