Created
November 3, 2020 13:17
-
-
Save sakamoto-poteko/d470951778cdb9296f9209be383c7ef2 to your computer and use it in GitHub Desktop.
bin text to hex
This file contains hidden or 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
file=`cat cipher.txt | sed -e 's/[\r\n]/ /g'` | |
for word in ${=file} | |
do | |
printf '%02x ' $((0b$word)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment