import base64, binascii a = base64.b64decode(raw_input("What is your Hash? \nEnter Here: ")) b = binascii.b2a_hex(a) print "AIM Hash: ",b[0:32]