Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Hexadecimal Conversion in Python
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="James Stroud, post: 1846236"] Its great that you are learning python, but it seems you are confused about how it works, so you are not making sense to a lot of people. Hex conversion can be done in a lot of ways. You should look into "struct" as others have suggested, which might be a more resource effecient (less processor cycles) choice and also give you your data as numerical types. If you have managed to get to the point of having a string that looks like this: '\xcb\xdb\xbe\xef' Then the simplest thing for you to do (least amount of learning) at this point might be to look at "decode" and "encode" for example 'cbdbbeef' Also, you might annoy (read: 'you have annoyed') a lot of people by saying that python has a "llimited" library. Not only are you incorrect, but you made a typo. You will do well to learn as much of the python library as you can, but it will take some time. You will also do well to avoid typos and grammatical errors in your communications. Also, you need to answer Fredrik's question. Let me restate it. What do you mean by '....'? This encodes in hex to '2e2e2e2e'. Is this the cipher text you were expecting? If so, your company may want to re-think its encryption algorithm. James -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 [URL]http://www.jamesstroud.com/[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Hexadecimal Conversion in Python
Top