I want to convert string to a hex (decimal),
for example abc
to 616263
and so on.
How do I do that?
I have tried:
x= input("Enter string")
x = int(x)
hex(x)
But it is not working.
I want to convert string to a hex (decimal),
for example abc
to 616263
and so on.
How do I do that?
I have tried:
x= input("Enter string")
x = int(x)
hex(x)
But it is not working.
maybe you are looking for something like:
x.encode("hex")