I have encrypted username and password in php using crypt
function. How can I decrypt that username and password?
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
$key = "This is a very secret key";
$text = "Welcome to the system.";
echo strlen($text) . "\n";
This doesn't print anything. What am I doing wrong?