Does some plugin exist, or there is the possibility of the implementation of some easy sctipt encrypting and decrypting messages: mcrypt, pgp or any different ??
Something in like this:
$data = "mesage";
$key = "password";
$td = MCRYPT_RIJNDAEL_256;
$iv_size = mcrypt_get_iv_size($td, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
echo "Original data: $data
";
$encrypted_data = mcrypt_encrypt($td, $key, $data, MCRYPT_MODE_CBC, $iv);
echo "Encrypted data: " . bin2hex($encrypted_data) . "
";
$data = mcrypt_decrypt($td, $key, $encrypted_data, MCRYPT_MODE_CBC, $iv); // decrypts data
echo trim($data);
?>
How i can use this script, or any different??