Tema: Crypt_RSA
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/01/2011, 13:59
heislerpalma
 
Fecha de Ingreso: junio-2005
Mensajes: 17
Antigüedad: 18 años, 10 meses
Puntos: 0
Pregunta Crypt_RSA

alguien a usado la libreria Crypt_RSA ?
se encuentra en la red un ejemplo

Este ejemplo me falla en la linea :extract($rsa->createKey());
<?php
include('Crypt/RSA.php');

$rsa = new Crypt_RSA();
extract($rsa->createKey());

$plaintext = 'terrafrost';

$rsa->loadKey($privatekey);
$ciphertext = $rsa->encrypt($plaintext);

$rsa->loadKey($publickey);
echo $rsa->decrypt($ciphertext);
?>