Hi,
I have just started python as after a chat with a friend I have discovered it would be the most suitable language for my latest project. The problem I have come across is I need a sha1 function written in python. I don't want to use the built in hashlib but I need an open source algorithm that I can modify. Can anybody help me on this one as google shows me nothing in the way of code snippets. Also I tried recreating the algorithm from scratch but turned out terribly hard to convert c++ code to python.
Thanks.
cwarn23 387
Occupation: Genius Team Colleague Featured Poster
Recommended Answers
Jump to PostYou could try to convert the C code from the files shamodule.c, sha256module.c and sha512module.c in the python source distribution, which provide the sha algorithms for the hashlib module.
All 4 Replies
Gribouillis 1,391
Programming Explorer Team Colleague
cwarn23 387
Occupation: Genius Team Colleague Featured Poster
Gribouillis
commented:
nice link +4
joehms22 18
Junior Poster
cwarn23 387
Occupation: Genius Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.