Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21485
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cosmius@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'string.': 0.04; '*not*': 0.05; 'solution,': 0.09; 'to:addr:comp.lang.python': 0.09; 'url:packages': 0.09; '[1].': 0.16; 'base64,': 0.16; 'hashlib': 0.16; 'he/she': 0.16; 'process?': 0.16; 'subject:function': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'sunday,': 0.23; 'string': 0.24; 'received:209.85.220': 0.25; 'cc:2**0': 0.26; "i'm": 0.28; 'indicated': 0.29; 'cc:addr:python.org': 0.29; 'hash': 0.30; 'lot.': 0.30; 'equivalent': 0.31; 'subject:?': 0.31; 'source': 0.32; 'thanks': 0.32; 'anyone': 0.32; "can't": 0.33; 'header:User-Agent:1': 0.33; 'too': 0.33; 'instead': 0.33; 'skip:" 20': 0.35; 'subject:How': 0.35; 'url:python': 0.35; 'encoding': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'received:209.85': 0.38; 'url:org': 0.39; 'difficult': 0.39; 'that.': 0.39; 'header': 0.39; 'received:209': 0.39; 'your': 0.61; 'march': 0.61; 'full': 0.62; 'chance': 0.62; 'forward': 0.63; 'choose': 0.64; '11,': 0.68 |
| Newsgroups | comp.lang.python |
| Date | Sun, 11 Mar 2012 03:10:19 -0700 (PDT) |
| In-Reply-To | <mailman.550.1331410629.3037.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=74.207.251.187; posting-account=oNuSIgoAAAAZId4Ea0hBMGd7JwNhEw7j |
| References | <28304124.1374.1331408016748.JavaMail.geo-discussion-forums@yncd8> <mailman.550.1331410629.3037.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| MIME-Version | 1.0 |
| Subject | Re: How to re-implement the crypt.crypt function? |
| From | Cosmia Luna <cosmius@gmail.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.559.1331460622.3037.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1331460622 news.xs4all.nl 6926 [2001:888:2000:d::a6]:42374 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:21485 |
Show key headers only | View raw
On Sunday, March 11, 2012 4:16:52 AM UTC+8, Christian Heimes wrote: > Am 10.03.2012 20:33, schrieb Cosmia Luna: > > I'm not searching for a full solution and only want to know how to use hashlib to create a equivalent string like > > If you chance your mind and choose to use a full solution, then I highly > recommend passlib [1]. It has an implementation of SHA-512 crypt as > indicated by the number 6 in the header of your string. > > By the way "$6$ds41p/9VMA.BHH0U" is *not* the salt. Just > "ds41p/9VMA.BHH0U" is the salt, 6 is a hash identifier. > > Christian > > [1] http://packages.python.org/passlib/ PassLib works for me. What I want is passlib.context, I need it in consideration of forward compatibility. Thanks a lot. But I still want to know how it is implemented, I read passlib's source but I found he/she re-implemented hashlib, which I can't understand. Now I knows that the encoding is hash64 instead of base64, but I can't know that. PassLib is too difficult for me. Anyone knows the accurate process? Cosmia
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How to re-implement the crypt.crypt function? Cosmia Luna <cosmius@gmail.com> - 2012-03-10 11:33 -0800
Re: How to re-implement the crypt.crypt function? Roy Smith <roy@panix.com> - 2012-03-10 15:15 -0500
Re: How to re-implement the crypt.crypt function? Christian Heimes <lists@cheimes.de> - 2012-03-10 21:36 +0100
Re: How to re-implement the crypt.crypt function? Roy Smith <roy@panix.com> - 2012-03-10 15:41 -0500
Re: How to re-implement the crypt.crypt function? Christian Heimes <lists@cheimes.de> - 2012-03-10 22:07 +0100
Re: How to re-implement the crypt.crypt function? Christian Heimes <lists@cheimes.de> - 2012-03-10 21:16 +0100
Re: How to re-implement the crypt.crypt function? Cosmia Luna <cosmius@gmail.com> - 2012-03-11 03:10 -0700
Re: How to re-implement the crypt.crypt function? Cosmia Luna <cosmius@gmail.com> - 2012-03-11 03:10 -0700
csiph-web