hia guys, another n00b question lol
im using a simple way of decoding long hex strings at the moment:
a = " hex code goes here ".decode("hex")
print a
but it means when i go to decode more hex i have delete all the hex iv entered into the script. I was wondering if there was a way to make this work using the raw_input command so i only have to run the script and enter the long hex strings to be decoded and save me the trouble of having to delete stuff from the script all the time.
I tried using this :
a = raw_input("Enter Hex Code :")
b = ("%s") % a
dec_hex = "b".decode("hex")
print dec_hex
But unfortunatly that doesnt work, can anyone point out where im going wrong here thanks

Reply With Quote
I'm trying to convert HEX to an int or string.


