I have the next string with base 64 encoded:
aJjueq22q2O202ZzZdpjPO6Cr32p0cc22jeaceupcjd2Z2SuPg2J6rwupOQzS62e3cC2eWS2gC2P232a2p925w==
When I decoded with base64_encode function in PHP I received the next string:
$key = base64_decode($key);
.3K��yd-}ڟv7qr7vgd>
But in JS I did the next:
const keyDecoded = Buffer.from(key, "base64").toString("ascii");
And I received a different decoded string:
h↑nz-6+cj<.$d3K-▲]@6yd6-☼[}→Z▼vgvgd.>
How is it possible? I need to get a string like the first (PHP)