Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.051 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'subject:Python': 0.06; 'great.': 0.07; 'part,': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'md5': 0.16; 'play.': 0.16; 'wrote:': 0.18; 'entered': 0.20; 'print': 0.22; 'lets': 0.24; "i've": 0.25; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'nature': 0.30; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'keys': 0.31; 'anyone': 0.31; 'allows': 0.31; 'there.': 0.32; 'screen': 0.34; "i'd": 0.34; 'could': 0.34; 'subject:with': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'passwords': 0.36; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'structure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'tell': 0.60; "you're": 0.61; 'back': 0.62; 'information': 0.63; 'more': 0.64; '26,': 0.68; 'subject': 0.69; 'password;': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=LjHS+dfhqsu35OjhcVBGYqjOc1gSga47zVWP31FLJLU=; b=NBvvmMHowtResS4mjS2DF8cGZTPwLFdmtAf8ckQblPGSC6NrGIvSE3KlYYfyTWBZ6W ZJU4SUMlT5Neu64bWny/oJi6Ncomr9si6pJpNE+ctFtMTYZxIJdPOv9fSKTnjzN+nnWi mluIMDGOVKtwYyBFqaQ+ybMkrWyyr/yvf76IJ9zi2iHngoPELYwRZQxOORz0uYTRL690 pKflK4gHEls0BVtzbz+4+4euunkP3UxBcgcH71ueS9jwn3j7QyLBnvUdALNKAd9YBPU4 t2qJgfFO7giSF1+vK2Gx79hAazBttcUH3wZNHnrRqcvnUJ2CaaZz2sgJyLRBbtGRQW+D 7fxA== MIME-Version: 1.0 X-Received: by 10.52.232.226 with SMTP id tr2mr469170vdc.26.1385462365318; Tue, 26 Nov 2013 02:39:25 -0800 (PST) In-Reply-To: <2a8225b8-da33-4db4-b83b-dcbd8a619f6c@googlegroups.com> References: <0a4ae59b-fff8-40dd-b264-823ea596ad82@googlegroups.com> <52940dbe$0$11089$c3e8da3@news.astraweb.com> <2a8225b8-da33-4db4-b83b-dcbd8a619f6c@googlegroups.com> Date: Tue, 26 Nov 2013 21:39:25 +1100 Subject: Re: Cracking hashes with Python From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385462367 news.xs4all.nl 15883 [2001:888:2000:d::a6]:56057 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60496 On Tue, Nov 26, 2013 at 9:30 PM, TheRandomPast wr= ote: > and I've started the second part, the part to crack them. If anyone could= tell me where I'd find more information on this subject and how to crack t= hem that would be great. As I print them on screen I was thinking I could w= rite a program that allows the md5 to be entered and then cracked. Okay. This is where the irreversible nature of hash functions comes into play. You can't actually take the hash and go back to the password; what you have to do is try lots of passwords and find one that has the right hash. Python has a data structure that lets you store keys and values, and then see whether the key you're looking for is there. See if you can use that. ChrisA