[英]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.js
, pbkdf2.js
, hmac-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.