react-native base64的解析(crypto-js)
在做react-native的时候,做了一个前端加密的功能,使用了crypto-js插件1.安装插件,然后调用(import C from 'crypto-js')2.使用:var base64 = C.enc.Base64.stringify(words);3.添加汉语加密:var words = C.enc.Utf8.parse(su);4.解密:var base64 = C.enc.Base