简体   繁体   English

如何在没有nodeJS的情况下使用cryptoJS的函数pbkdf2

[英]how use function pbkdf2 of cryptoJS without nodeJS

according to this link , I want to convert mnemonic words to its corresponding seed. 根据此链接 ,我想将助记词转换为其相应的种子。 I want to do this by javascript and use it in webclients without nodeJS . 我想通过javascript来做到这一点,在Web客户使用它没有的NodeJS。

the library that I have in mind is cryptoJS . 我想到的库是cryptoJS

I am planning to use function pbkdf2 , but I don't know which js file I need to add to html page. 我打算使用功能pbkdf2 ,但是我不知道我需要添加哪个js文件到html页面。

I have one old answer here how to use cryptoJS: https://stackoverflow.com/a/43438494/2951051 我在这里有一个旧答案如何使用cryptoJS: https ://stackoverflow.com/a/43438494/2951051

About your last question " which js file I need to add to html page.": 关于您的最后一个问题“我需要将哪个js文件添加到html页面。”:

I use this scripts from gitHub: https://github.com/sytelus/CryptoJS 我从gitHub使用以下脚本: https : //github.com/sytelus/CryptoJS

After that I use this files from rollups/ folder: 之后,我使用rollups/文件夹中的以下文件:

aes.js , pbkdf2.js , hmac-sha512.js aes.jspbkdf2.jshmac-sha512.js

For more random entropy i have changed random.js (inside aes.js) with another random function you can download from : https://github.com/wwwtyro/cryptico/blob/master/random.js 对于更多的随机熵,我使用另一个随机函数更改了random.js (在aes.js内部),您可以从以下网址下载: https : //github.com/wwwtyro/cryptico/blob/master/random.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CryptoJS PBKDF2和盐哈希方法不起作用 - CryptoJS PBKDF2 and salt hash method not working 有没有办法解密在 javascript cryptoJS 中以 PBKDF2 格式加密的字符串 - Is there a way to decrypt a string which is encrypted in PBKDF2 format in javascript cryptoJS Nodejs crypto.pbkdf2 结果与 CryptoJS.PBKDF2 不同 - Nodejs crypto.pbkdf2 result is different from CryptoJS.PBKDF2 如何在输入错误密码时显示错误 NodeJS 加密 - createDecipheriv 和 pbkdf2 - how to show error when wrong password is given NodeJS crypto - createDecipheriv and pbkdf2 使用 CryptoJS 加密字符串 使用 OpenSSL 解密不起作用(对 PBKDF2 使用 Salt 和密码) - Encrypt String with CryptoJS Decrypt with OpenSSL is not working (Using Salt and Password for PBKDF2) 是否可以在SJCL中使用bcrypt或scrypt替代PBKDF2? - Is it possible to use bcrypt or scrypt as an alternative to PBKDF2 in SJCL? Javascript中的PBKDF2安全性 - PBKDF2 security in Javascript NodeJS 卡在 cryto.pbkdf2Sync function - NodeJS stuck at cryto.pbkdf2Sync function Node.js加密PBKDF2函数在v8与v10上返回不同的值 - Node.js crypto PBKDF2 function returns different values on v8 vs v10 如何为PBKDF2使用Web加密API SubtleCrypto.deriveKey()设置长度 - How to set the out-length with the Web Crypto API SubtleCrypto.deriveKey() for PBKDF2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM