hmacSha256.doFinal(msg.getBytes());
} import crypto from "crypto";const eMessage = crypto.createHmac("SHA256", apiKey).updatefs from "fs";
import moment
我在一个使用webpack的反应项目中使用EvaporateJS。(,我不想使用aws,因为btw正确地工作的包大小) return crypto.createHash('md5').update(data).digest('base64'); 但是“数据”是ArrayBuffer的类型。所以我试着把它转换成字符串。 var enc = new TextDecode
string-template由两个文件index.js & compile.js组成,它们都导出一个模块。"string-template", // Points per default to index.js which works just fine
{当我尝试只从导入特定模块以只使用crypto-js/aes & crypto-js/sha256而不是包含整个包(在NPM使