Ver Mensaje Individual
  #1  
Antiguo 08-08-2013
Alejandro73 Alejandro73 is offline
Miembro
 
Registrado: abr 2006
Ubicación: Valparaiso - CHILE
Posts: 132
Reputación: 19
Alejandro73 Va por buen camino
Cifrar, Descifrar PHP

Estimados

Estoy trabajando con delphi 6.0 y utilizo AES256 para cifrar y descifrar palabras sin ningun inconveniente.

Ahora necesito que desde PHP pueda utilizar lo mismo, descargue AEShandling.php, pero al ejecutar el siguiente codigo de ejemplo
Código PHP:
<?php
include_once("AEShandling.php");
$textData   "Prueba de encriptación";
$secretHash "d2cb415e067c7b13";
$AES        = new AEShandling($secretHash);
$IV     $AES->getIV();
$IV     "e36dc751d0433f05";
$encryptString  $AES->encryptData($textData$IV);
$dataString $AES->getStringData($encryptString$IV);
$decryptString  $AES->decryptData($encryptString$IV);
echo 
$decryptString;
?>
me figura el siguiente error
Fatal error: Call to undefined function mcrypt_get_iv_size() in C:\inetpub\wwwroot\Cifrar\AEShandling.php on line 68

PHP Fatal error: Call to undefined function mcrypt_get_iv_size() in C:\inetpub\wwwroot\Cifrar\AEShandling.php on line 68

en la linea 68 figura un llamado a esta funcion, revisando encontre que debia incorporar libmcrypt.dll y reiniciar el servicio de IIS, pero aun luego de realizarlo en error continua.

Desde ya muchas gracias por su ayuda.
__________________
Los muertos en CRISTO de sus tumbas volveran y los que vivimos en las nubes nos levantara .......
Responder Con Cita