Created
September 20, 2016 18:05
-
-
Save greymd/6683dd8d90a3bcfbb528a4a603ff245c to your computer and use it in GitHub Desktop.
Binary encrypted message
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
# 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