Popular Python recipes tagged "md5"http://code.activestate.com/recipes/langs/python/tags/md5/2010-12-29T22:15:14-08:00ActiveState Code RecipesEAP-MD5 802.1X Supplicant (Python)
2010-12-29T22:15:14-08:00Andrew Grigorevhttp://code.activestate.com/recipes/users/4172098/http://code.activestate.com/recipes/577523-eap-md5-8021x-supplicant/
<p style="color: grey">
Python
recipe 577523
by <a href="/recipes/users/4172098/">Andrew Grigorev</a>
(<a href="/recipes/tags/authentication/">authentication</a>, <a href="/recipes/tags/eap/">eap</a>, <a href="/recipes/tags/md5/">md5</a>, <a href="/recipes/tags/networking/">networking</a>).
</p>
<p>802.1X EAP protocol supplicant (see RFC3748), supporting only MD5-Challenge authentication type. Linux only.</p>
Getting the SHA-1 (or MD5) hash of a directory (Python)
2009-12-06T19:02:40-08:00Stephen Akikihttp://code.activestate.com/recipes/users/4172143/http://code.activestate.com/recipes/576973-getting-the-sha-1-or-md5-hash-of-a-directory/
<p style="color: grey">
Python
recipe 576973
by <a href="/recipes/users/4172143/">Stephen Akiki</a>
(<a href="/recipes/tags/directory/">directory</a>, <a href="/recipes/tags/getting/">getting</a>, <a href="/recipes/tags/hash/">hash</a>, <a href="/recipes/tags/md5/">md5</a>, <a href="/recipes/tags/sha_1/">sha_1</a>, <a href="/recipes/tags/the/">the</a>).
Revision 4.
</p>
<h5><a href="http://akiscode.com/articles/sha-1directoryhash.shtml" rel="nofollow">http://akiscode.com/articles/sha-1directoryhash.shtml</a></h5>
<p>By definition a cryptographic hash is, "a deterministic procedure that takes an arbitrary block of data and returns a fixed-size bit string, the (cryptographic) hash value, such that an accidental or intentional change to the data will change the hash value". </p>
<p>Usually these hashes are used on files to "fingerprint" them, but in order to do the same to a directory you have to do something like this: </p>