RE: [INTERNALS-WIN] TS implementation of crypt() for windows

From: Date: Fri, 18 Jul 2008 03:26:05 +0000
Subject: RE: [INTERNALS-WIN] TS implementation of crypt() for windows
References: 1  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-78@lists.php.net to get a copy of this message
Where does this code come from? If license is OK for us we should make sure to specify source in code and give attribution. > -----Original Message----- > From: Pierre Joye [mailto:pierre.php@gmail.com] > Sent: Thursday, July 17, 2008 3:40 PM > To: internals-win@lists.php.net > Subject: [INTERNALS-WIN] TS implementation of crypt() for windows > > HI! > > Please find a new implementation of the crypt function for windows. > The current code is not thread safe and suffer from a security issue > since too long (we count in years now :P). > > Here is the patch: > > http://pierre.libgd.org/patches/crypt_r_win32.patch.txt > > It uses the CryptoAPI for the MD5 version and a classic crypt_r > implementation for DES to keep BC. I would have liked to use the > cryptoAPI as well but the crypt's DES is not standard. > > > Before I apply this patch, I would like to know if you see any issue :) > > Thanks for your feedbacks, > > Cheers, > -- > Pierre > > http://blog.thepimp.net | > http://www.libgd.org > > -- > Windows Internals Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.internals.win (#78) next »