Skip to content

Instantly share code, notes, and snippets.

@sakamoto-poteko
Created November 3, 2020 13:17
Show Gist options
  • Save sakamoto-poteko/d470951778cdb9296f9209be383c7ef2 to your computer and use it in GitHub Desktop.
Save sakamoto-poteko/d470951778cdb9296f9209be383c7ef2 to your computer and use it in GitHub Desktop.
bin text to hex
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