I have used below code to encrypt the parameter. But it will generate the encrypted string with slashes.
How to deal with the special character in mcrypt? Some special character not works in url like slash.
//For encryption
$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND);
$parcrypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->crypt_key, "VALUE_TO_ENCRYPT", MCRYPT_MODE_ECB, $iv);
$encode = base64_encode($parcrypt );
Thanks.