PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Why does the host make a difference?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Why does the host make a difference?

Réponse
 
LinkBack Outils de la discussion
Vieux 13/03/2008, 02h33   #1
Rick Pasotto
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Why does the host make a difference?

I have a routine that uses the PEAR module CRYPT_BLOWFISH to encrypt a
value and then base64_encode() to create a printable string. If I
reverse the process on the same host I get the orginal value however if
I do the reverse processing on a different host the result is garbage.

Shouldn't both the encryption and the encoding/decoding be host
independent? Aren't both routines standard, public algorithms that
should be reversable even between different operating systems? That's
not my case since both are linux but one is php4 and the other php5.
If that's the problem, why?

--
"There are two tragedies in life. One is to lose your heart's desire.
The other is to gain it." -- George Bernard Shaw
Rick Pasotto rick@niof.net http://www.niof.net
  Réponse avec citation
Vieux 13/03/2008, 02h39   #2
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Why does the host make a difference?

Rick Pasotto wrote:
> I have a routine that uses the PEAR module CRYPT_BLOWFISH to encrypt a
> value and then base64_encode() to create a printable string. If I
> reverse the process on the same host I get the orginal value however if
> I do the reverse processing on a different host the result is garbage.
>
> Shouldn't both the encryption and the encoding/decoding be host
> independent? Aren't both routines standard, public algorithms that
> should be reversable even between different operating systems? That's
> not my case since both are linux but one is php4 and the other php5.
> If that's the problem, why?


More appropriate for a pear list really, but what happens in the pear
module if a particular encryption method isn't available? Maybe host "A"
has extra MCRYPT options that host "B" doesn't.

--
Postgresql & php tutorials
http://www.designmagick.com/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h16.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09642 seconds with 10 queries