publicfunctiongenerate_keys($keysize = 20)
{
// Génération d'un nombre arbitraire E (valeur 65537)$e = $this->math->bin2int("\x01\x00\x01");
// Génération de deux nombre premiers P et Q avec cette condition : PGCD(E, P - 1) = 1 et PGCD(E, Q - 1) = 1foreach (array('p', 'q') AS$varname)
{
do
{
$$varname = $this->math->getPrime($keysize, 'rand');
$pgcd = $this->math->GCD($$varname - 1, $e);
}
while (!$this->math->isOne($pgcd));
}
// Calcul d'un nombre N valant P * Q$n = $this->math->mul($p, $q);
// Calcul d'un nombre D valant 1 / E % ((P - 1) * (Q - 1))$p1 = $this->math->dec($p);
$q1 = $this->math->dec($q);
$d = $this->math->invmod($e, $this->math->mul($p1, $q1));
// Génération de la clef publique
******* $this->public_key = &newRsa_key($n, $e, 'public');
$this->private_key = &newRsa_key($n, $d, 'private');
}
Voilà, en espérant que quelqu'un trouve une solution ^^
Est que tu as le fichier class_display.php dans /main/class ???
"It's backup day today so I'm pissed off. Being the BOFH, however, does have it's advantages. I reassign null to be the tape device — it's so much more economical on my time as I don't have to keep getting up to change tapes every 5 minutes. And it speeds up backups too, so it can't be all bad can it? Of course not." S.Travaglia
"It's backup day today so I'm pissed off. Being the BOFH, however, does have it's advantages. I reassign null to be the tape device — it's so much more economical on my time as I don't have to keep getting up to change tapes every 5 minutes. And it speeds up backups too, so it can't be all bad can it? Of course not." S.Travaglia
Cause Im as free as a bird now, And this bird you can not change. - Freebird - Lynyrd Skynyrd There's someone in my head but it's not me. - Brain damage - Pink Floyd I said baby, you know Im gonna leave you. - Babe I'm gonna leave you - Led Zeppelin Father ? yes son, I want to kill you - The end - The Doors
Essaie de réuploader les fichiers main/class/class_rsa.php et main/class/class_display.php pour voir ?
Cause Im as free as a bird now, And this bird you can not change. - Freebird - Lynyrd Skynyrd There's someone in my head but it's not me. - Brain damage - Pink Floyd I said baby, you know Im gonna leave you. - Babe I'm gonna leave you - Led Zeppelin Father ? yes son, I want to kill you - The end - The Doors
Cause Im as free as a bird now, And this bird you can not change. - Freebird - Lynyrd Skynyrd There's someone in my head but it's not me. - Brain damage - Pink Floyd I said baby, you know Im gonna leave you. - Babe I'm gonna leave you - Led Zeppelin Father ? yes son, I want to kill you - The end - The Doors
Message édité 1 fois, dernière édition par Genova, 23 Février 2008, 0:10
22 Février 2008, 23:57
Par contre aucune idée d'où ça peut venir, surement d'une certaine version de PHP. Si tu pouvais me donner ta version de PHP ?
Cause Im as free as a bird now, And this bird you can not change. - Freebird - Lynyrd Skynyrd There's someone in my head but it's not me. - Brain damage - Pink Floyd I said baby, you know Im gonna leave you. - Babe I'm gonna leave you - Led Zeppelin Father ? yes son, I want to kill you - The end - The Doors
Me semble que dans php.ini y'a une option ByRef, désactivée ça pourrait pas expliquer ce probleme ?
"It's backup day today so I'm pissed off. Being the BOFH, however, does have it's advantages. I reassign null to be the tape device — it's so much more economical on my time as I don't have to keep getting up to change tapes every 5 minutes. And it speeds up backups too, so it can't be all bad can it? Of course not." S.Travaglia
Le topic date d'il y a un moment, mais je viens juste d'avoir ce problème sur mon serveur dédié.
Avant, je n'avais aucun problème pour me logger, mais le problème est apparu juste après avoir installer le paquet php5-debug pour pouvoir installer eAccellerator, donc si jamais ça peut aider
Salut,
en appliquant le fix donné plus haut, ça corrigé ton problème ?
Cause Im as free as a bird now, And this bird you can not change. - Freebird - Lynyrd Skynyrd There's someone in my head but it's not me. - Brain damage - Pink Floyd I said baby, you know Im gonna leave you. - Babe I'm gonna leave you - Led Zeppelin Father ? yes son, I want to kill you - The end - The Doors