- substr: documentation ( source)
- base64_decode: documentation ( source)
- base64_encode: documentation ( source)
- md5: documentation ( source)
<?php
function decrypt($str, $key) {
$iv = substr( md5("test",true), 0, 8 );
return mcrypt_decrypt( MCRYPT_BLOWFISH, $key, $str, MCRYPT_MODE_CBC, $iv );
}
$Validation = "Ddu/TKDkBK5IXiJIyEWTHnnX6+3GMesu7NUgUlmjbzk=";
$key = "test";
$msg = $text['felicitation'].decrypt(base64_decode($Validation),base64_encode($key));
echo "Le flag est: ".$msg;
?>