Skip to content

Instantly share code, notes, and snippets.

@ramsys ramsys/gist:5419469
Created Apr 19, 2013

What would you like to do?
Script in python that print the hex value from a base4 string passed by argument
import sys
import base64
#import binascii
#Controlamos que tenga argumento
print 'usage: <DigestValue>'
base64string = sys.argv[1]
print base64.decodestring(base64string).encode('hex')
#print binascii.a2b_base64(base64string).encode('hex')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.