Re: blowfish result varies local > server

From: Date: Mon, 08 May 2006 17:30:04 +0000
Subject: Re: blowfish result varies local > server
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-235732@lists.php.net to get a copy of this message
Wild Guesses: Trailing spaces or even NULL characters may be confusing Blowfish in some way. You HAVE confirmed in every way possible that the inputs are the same, right?... I often use something like this with "View Source" in browser: echo "'$input1' (", strlen($input1), ")<hr />"; to be certain that leading/trailing whitepsace isn't messing me up. And be sure the the key also is the same -- An ASCII FTP transfer that adds newlines or something can often be masked by modern tools. :-v -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I used the PEAR Blowfish package on my osx work machine, our redhat
linux server, and ubuntu at home and on all three machines got different results. The data I had encrypted was user passwords. All I did was just import the sql dump into the DB on all three machines so it wasn't a problem of input error. I looked on Google and found this link though: http://www.codecomments.com/archive218-2005-7-541551.html The author says it should work. But since I have already moved on to using the mcrypt extension I'm not going to bother with the tests and whatnot. Perhaps that might be an option for you D_C.

« previous php.general (#235732) next »