[Python-Dev] Conversion of a standard unicode string to a bit string in Python (original) (raw)

David Mertz mertz at gnosis.cx
Sat Oct 17 11:52:30 EDT 2015


This list is for discussion of development of the Python core language and standard libraries, not for development using Python. It sounds like you should probably do your homework problem on your own, actually, but if you seek advice, something like StackOverflow or python-list are likely to be more appropriate.

On Sat, Oct 17, 2015 at 6:22 AM, Nemo Nautilius <nemodevops at gmail.com> wrote:

Hi All, I'm currently programming a set of crypto challenges in order to get a deeper understanding of python and crypto. The problem is to break a repeating key xor data (in a file). In order to do that I need a function to calculate the hamming distance between two strings. To find that one needs to find the differing number of bits in a string. Any ideas on how to manipulate the string at bit level?

This is my first time in writing a question to the mailing list so please let me know anything that I need to keep in mind while asking questions. Thanks in advance. Gracias Nemo


Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/mertz%40gnosis.cx

-- Keeping medicines from the bloodstreams of the sick; food from the bellies of the hungry; books from the hands of the uneducated; technology from the underdeveloped; and putting advocates of freedom in prisons. Intellectual property is to the 21st century what the slave trade was to the 16th. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20151017/eaedb925/attachment.html>



More information about the Python-Dev mailing list