Hi there,
please help me to write script encryption/decryption in php?
i am using below code for my encryption/decryption ...
Please tell your suggesstions if there is security issues in this script.
thanks..
$key_value = "prtiv24$";
$plain_text = "password";
$encrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $plain_text, MCRYPT_ENCRYPT); // password encryption
echo ( $encrypted_text );
$decrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $encrypted_text, MCRYPT_DECRYPT);
echo ("<p><b> Text after decryption : </b>");
echo ( $decrypted_text );