regarding this
blowfish result varies local > server
richard - tx for your comment below. Could it be likely that a unix and a windows system would give different results on blowfish, even using the same PHP code? someone else mentioned mcrypt might be a better option...
This isn't really an answer, but I noticed this behavior too when I was playing around with the PEAR implementation. I didn't read much into it though because I just switched to using the mcrypt extension. But that might not be an option for you.
hmm. web designer turns into crypto cracker when faced with php... /dc On 5/9/06, tg-php@xxxxxxxxxxxxxxxxxxxxxx <tg-php@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Since someone already said "go ask on the PEAR list", I'll reply privately. Been ages since I've worked with blowfish or any serious encryption but I seem to remember there being oddness involving seed values for some encryption schemes even if you use the same key. The other issue you might have is if one of your servers is a 32bit system and the other is a 64.... or even different processor classes (SPARC vs Intel) because of the way some floating point processing is done. So if you encrypt something on one machine and try to decrypt it on another, that's something that might get in your way. Probably other things too.. just wanted to share what little I remember on the subject in case it's a good lead for ya. Good luck! -TG = = = Original message = = = hi - just wondering if anyone knows the answer to this. i have an item being blowfish encrypted... with the same key, but on my local and remote machines it gives a different result... any ideas on this? we're both running simliar (5.x) versions of PHP + the blowfish is an external (PEAR) library anyway... very puzzling! tx, /dc -- _______________________________________________ David "DC" Collier ___________________________________________________________ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com.
-- _______________________________________________ David "DC" Collier dc@xxxxxxxxxx skype: callto://d3ntaku http://www.pikkle.com +81 (0)80 6521 9559 http://charajam.com 【★キャラ♪ジャム★】; 人気キャラとJ-POP最新ヒット曲を自分で組み合わせて 待受Flashや着Flashを作っちゃおう! _______________________________________________ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php