Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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