CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 07 Aug 2025 09:25:53 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20070519050353
location: https://web.archive.org/web/20070519050353/https://wiki.python.org/moin/Md5Passwords
server-timing: captures_list;dur=0.833599, exclusion.robots;dur=0.025174, exclusion.robots.policy;dur=0.010366, esindex;dur=0.016039, cdx.remote;dur=56.756997, LoadShardBlock;dur=2539.530940, PetaboxLoader3.datanode;dur=185.249450, PetaboxLoader3.resolve;dur=2266.767137
x-app-server: wwwb-app214
x-ts: 302
x-tr: 2632
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app214; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 07 Aug 2025 09:25:54 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sat, 19 May 2007 05:03:52 GMT
x-archive-orig-server: Apache/2.0.54 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.5 mod_scgi/1.2
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 19 May 2007 05:03:53 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 16 May 2006 08:45:08 GMT", ; rel="prev memento"; datetime="Sat, 30 Dec 2006 21:31:52 GMT", ; rel="memento"; datetime="Sat, 19 May 2007 05:03:53 GMT", ; rel="next memento"; datetime="Sun, 01 Jul 2007 05:59:00 GMT", ; rel="last memento"; datetime="Sun, 23 Mar 2025 01:52:43 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 42_0_20070519031637_crawl27-c/42_0_20070519045830_crawl29.arc.gz
server-timing: captures_list;dur=2.771083, exclusion.robots;dur=0.019336, exclusion.robots.policy;dur=0.008369, esindex;dur=0.012191, cdx.remote;dur=56.905573, LoadShardBlock;dur=399.275526, PetaboxLoader3.datanode;dur=230.764830, PetaboxLoader3.resolve;dur=442.124093, load_resource;dur=322.366275
x-app-server: wwwb-app214
x-ts: 200
x-tr: 825
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Md5Passwords - PythonInfo Wiki
Md5Passwords
MD5 Passwords
It's very easy to create MD5 passwords with Python-
You just:
1 import md5
2
3 key_string = raw_input( "Key to turn into an MD5 password? " )
4
5 print md5.new( key_string ).hexdigest()
ex: "robots" turns into "27f5e15b6af3223f1176293cd015771d"
The "hexdigest" form is the form you frequently find used in databases and in online forums.
Salting
A good idea is to include a 'salt' with the hash as well, which will prevent people using a dictionary with md5 hashes of common passwords. When you check a password, just add the salt to the front of the password and hash it. The salt can be any random string.
Something like this:
1 import md5
2
3 key_string = "SecretPassword"
4 salt = "1Ha7"
5
6 hash = md5.new( salt + key_string ).hexdigest()
7 print "%s:%s" % (salt, hash) # Store these
See Also
an on-line MD5 generator - create MD5 values from keys, online
Discussion
EditText (last edited 2005-05-30 20:31:01 by aaron)
DeleteCache (cached 2007-05-11 23:00:26)- Login
- Navigation
- Actions
- Your recent pages