Skip to content Skip to sidebar Skip to footer

How To Convert String "0671" Or "0x45" Into Integer Form With 0 And 0x In The Beginning

I wanted to make my own encryption algorithm and decryption algorithm , encryption algorithm works fine and converts ascii value of the characters into alternate hexadecimal and oc

Solution 1:

there you go (s is the string)

int(s,0)

Post a Comment for "How To Convert String "0671" Or "0x45" Into Integer Form With 0 And 0x In The Beginning"