添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
笑点低的苦瓜  ·  Parallel computing ...·  2 月前    · 
耍酷的莲藕  ·  【預定】Bearpanda Biya ...·  5 月前    · 
才高八斗的数据线  ·  Windows 10: Can't ...·  6 月前    · 
傻傻的伏特加  ·  I'm trying to `npm ...·  6 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have faced this problem when I used the base64 encode like this

export function base64Encode(content) {
    return CryptoJS.enc.Base64.stringify(content);

and I have import the lib like this import Base64 from 'crypto-js/enc-base64';

Environment : React-Native 0.55.4
"crypto-js": "^3.1.9-1",

sorry , the usage is complex , I FOUND THE USAGE IN SOURCE CODE

How should it be use? What is the Right Parameter Type?

Finally I get to know what WordArray is and I use like this:

import Base64 from 'crypto-js/enc-base64'
import Utf8 from 'crypto-js/enc-utf8'
console.log(Utf8.parse('Message'))
console.log(Base64.stringify(Utf8.parse('Message')))
daiwt, lixuan9512, Pogix3m, joemullenix-ks, zqhong, 0xdevalias, iexn, DiogoRamos22, Nikunj78, flemingcc, and 16 more reacted with thumbs up emoji 0xdevalias, DiogoRamos22, lunatite, songwenfang, gsoykan, 349989153, reglabel, and Goye reacted with heart emoji All reactions

I have a question... I'm using the node-red crypto-wz node that is a node-red interface to crypto-js. It encounters this error and is up to date. Any suggestions on how to resolve this from the perspective of crypto-wz? Is there like a non-release version of this package that would solve it? crypto-wz doesn't link to a repo in npm, so I don't know where to submit an issue for them. If the current release of crypto-js solves this, does the call in crypto-wz likely need to be fixed?