最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - AES encryption with CryptoJS corrupting unicode emoji - Stack Overflow

programmeradmin1浏览0评论

I'm writing a system, where a user can write something (via. mobile browser), and that "String" will be encrypted with a password, chosen by the user. Since unicode emojis are often used, they have to be supported too.

As lib for the crypto, I choose CryptoJs - so that the crypto can be done local on the devices.

Currently, when I encrypt a string, and decrypt the same sting, all emojis disappear/ are replaced with random chars.

var key = "123";
var content = "secret text with an emoji, 
发布评论

评论列表(0)

  1. 暂无评论