Jump to content

Problem with MCRYPT_RIJNDAEL


digisesso

Recommended Posts

Hi people

I'm begin I have problems with this i want to decode password

 

<?php
function dajsifru($info1) {
    $query = "info = '$info1'";
$pass = "64306464626136333135383930323830626635326264386634313362366132323339313164373133316265616334643530353935316636323863316263353036";
    
       $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);
       $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
       $encrypted = hex2bin(hex2bin($pass));
       $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $aid, $encrypted, MCRYPT_MODE_ECB, $iv);
    $pass = trim($decrypted);

           echo $pass."<br />pass:!"; 
}
?>

Link to comment
https://forums.phpfreaks.com/topic/170715-problem-with-mcrypt_rijndael/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.