: . JavaScript, ( ) . CryptoJS, , .
, - , .
JavaScript , . ( Blobs TypedArrays Buffers Node.js), - , .
( atob btoa) - . JavaScript ( Unicode, UCS-2/UTF-16). , , , .
, ASCII, , (.. , ). , , ASCII, , , UTF-16, . , .
( ) , UTF-8 . JavaScript . , encodeURIComponent UTF-8 URL-, ASCII. - :
var key = "123";
var content = "secret text with an emoji, 🎮";
var encrypted = aes_encrypt(key, encodeURIComponent(content));
var decrypted = decodeURIComponent(aes_decrypt(key, encrypted));
, URL-, , , , . , encodeURIComponent, -, , " ". , , - .
, CryptoJS , . , .