I am passing an encrypted string using URL and now I can decrypt it because the encrypted string contains + symbol. How to bypass this,
I am using AES encryption in Javascript.
My code is,
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js"></script>
window.location.href = "check.php?encr="+encodeURIComponent(CryptoJS.AES.encrypt(80,"qJB0rGtIn5UB1xG03efyCp"));
encryption string is U2FsdGVkX184sTDp%2BB%2Bgpn07shpb6lqRzqTh4BLOMj4%3D
Decryption code is,
var decrypted = CryptoJS.AES.decrypt("<?php echo urldecode($_GET["encr"]); ?>", "qJB0rGtIn5UB1xG03efyCp");
How can i avoid + symbol. Is there any solution.