[nycphp-talk] Crypt issue??
Analysis & Solutions
danielc at analysisandsolutions.com
Fri Jun 6 21:14:50 EDT 2003
Hey Jeff:
On Fri, Jun 06, 2003 at 05:37:27PM -0400, Jeff wrote:
> When it encodes the password '12345' when adding the record it generates
> "WOjDi2e3GGR4U"
> But when I test the login function it generates "WOxvmVFSIQUTU"
>
> In both cases I'm using this to call the function:
> $tmpPwd = EncryptString($_POST['DU_sPwd']);
Is this user creation and login procedures contained in the same script?
If not, is the EncryptString() function EXACTLY the same in each script,
including the same salt?
You might want to simplify things by using md5().
Anyway, put an echo statement inside the function:
echo ">$stringtoencrypt<";
and see if the actual input is the same. Perhaps something is modifying
your input before it gets submitted to the function.
Enjoy,
--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list