Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Genzer
Created June 4, 2021 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Genzer/e220735a9cf5d6cfe2831edd3c89fa7a to your computer and use it in GitHub Desktop.
Save Genzer/e220735a9cf5d6cfe2831edd3c89fa7a to your computer and use it in GitHub Desktop.
Checksum values between HEX and base64

Convert checksum between Hex and Base64 using CLI

From Hex to Base64

$> echo "da3968197e7bf67aa45a77515b52ba2710c5fc34" | xxd -r -p | base64
2jloGX579nqkWndRW1K6JxDF/DQ=

From Base64 to Hex

# Found on https://stephenhirst.azurewebsites.net/?p=5582
$> echo "2jloGX579nqkWndRW1K6JxDF/DQ=" | base64 -d | hexdump -v -e '/1 "%02x" '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment