I'm working on a project, where in that project I do base 64 encryption with the btoa () function from javascript then decrypt it using base64_encode () from php, in other files there is no problem but in this file the decryption function cannot decrypt it properly full
this is the code
$enc = isset($_GET['g'])?$_GET['g']:'';
$dec = base64_decode($enc);
the text : a||<p>b</p>
||c||t||u||v||d||e|f|g|h|i||j||k|l|m|n||o||p|q|r|s
encrypted text : YXx8PHA+YjwvcD58fGN8fHR8fHV8fHZ8fGR8fGV8ZnxnfGh8aXx8anx8a3xsfG18bnx8b3x8cHxxfHJ8cw==
the output after decript : a||<p> b </p>