anyone knows how to decrypt password using AES in php? but without using openSSL. i have tried
<?php
include ("./AES.class.php");
if(isset($_GET["tekan"])){
$nama=$_GET["nama"];
$z="abcdefgh01234567"; //key(kuncinya)
$aes=new AES($z);
$start = microtime(true);
$enkrip=$aes->encrypt($nama);
echo "\n\n Hasil enkrip:\n" ,($enkrip),"\n";
$decrypted=$aes->decrypt($enkrip);
$end = microtime(true);
echo "<br>";
echo "<br>";
echo "\n\n Hasil dekrip:\n",stripslashes($decrypted),"\n";
echo "<br>";
echo "<br>Execution time: " . ($end - $start);
echo " second";
}else{
$z="Thats my Kung Fu"; //key(kuncinya)
$aes=new AES($z);
$decrypted=$aes->decrypt('ò ØÔÎò.s*pb¨.c.ê');
echo $decrypted;
}
?>
but the result of decryption shows code not a plaintext.
Tags: phpphp