Popular recipes by Mark Johnston http://code.activestate.com/recipes/users/2119626/2004-10-26T13:58:15-07:00ActiveState Code Recipespasswd-file-compatible ($1$) MD5 crypt (Python)
2004-10-26T13:58:15-07:00Mark Johnstonhttp://code.activestate.com/recipes/users/2119626/http://code.activestate.com/recipes/325204-passwd-file-compatible-1-md5-crypt/
<p style="color: grey">
Python
recipe 325204
by <a href="/recipes/users/2119626/">Mark Johnston</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
</p>
<p>A port of Poul-Henning Kamp's MD5 password hash routine, as initially found in FreeBSD 2. It is also used in Cisco routers, Apache htpasswd files, and other places that you find "$1$" at the beginning of password hashes.</p>