CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 20 Aug 2025 10:42:14 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20070819003910
location: https://web.archive.org/web/20070819003910/https://wiki.python.org/moin/Md5Passwords
server-timing: captures_list;dur=0.673512, exclusion.robots;dur=0.020988, exclusion.robots.policy;dur=0.008709, esindex;dur=0.010094, cdx.remote;dur=221.222730, LoadShardBlock;dur=695.236830, PetaboxLoader3.datanode;dur=182.669485, PetaboxLoader3.resolve;dur=303.867463
x-app-server: wwwb-app239
x-ts: 302
x-tr: 1220
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=3
set-cookie: wb-p-SERVER=wwwb-app239; 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: Wed, 20 Aug 2025 10:42:15 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sun, 19 Aug 2007 00:39:09 GMT
x-archive-orig-server: Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/2.4.2
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 19 Aug 2007 00:39:10 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="Sun, 01 Jul 2007 05:59:00 GMT", ; rel="memento"; datetime="Sun, 19 Aug 2007 00:39:10 GMT", ; rel="next memento"; datetime="Wed, 19 Sep 2007 11:44:26 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_20070818214047_crawl103-c/42_0_20070819002006_crawl107.arc.gz
server-timing: captures_list;dur=0.581573, exclusion.robots;dur=0.018940, exclusion.robots.policy;dur=0.008095, esindex;dur=0.010151, cdx.remote;dur=22.194623, LoadShardBlock;dur=1066.431650, PetaboxLoader3.datanode;dur=273.154269, PetaboxLoader3.resolve;dur=1007.302844, load_resource;dur=234.041739
x-app-server: wwwb-app239
x-ts: 200
x-tr: 1398
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
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-08-08 07:00:25)- Login
- Navigation
- Actions
- Your recent pages