Re: blowfish result varies local > server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux