node-argon2:Argon2哈希算法的Node.js绑定

时间:2021-04-27 16:02:39
【文件属性】:
文件名称:node-argon2:Argon2哈希算法的Node.js绑定
文件大小:75KB
文件格式:ZIP
更新时间:2021-04-27 16:02:39
hashing crypto encryption argon2 password 节点氩气2 绑定到参考实现。 是否想在命令行上使用它? 而是检查 。 用法 可以使用Argon2i(默认),Argon2d和Argon2id进行哈希,并验证密码是否与哈希匹配。 哈希密码: const argon2 = require ( 'argon2' ) ; try { const hash = await argon2 . hash ( "password" ) ; } catch ( err ) { //... } 要了解如何修改输出(哈希长度,编码)和参数(时间成本,内存成本和并行性), 验证密码: try { if ( await argon2 . verify ( "" , "password" ) ) { // password match } else { // password did not
【文件预览】:
node-argon2-master
----argon2.js(2KB)
----.gitignore(989B)
----package.json(2KB)
----argon2.d.ts(1KB)
----src()
--------argon2_node.cpp(5KB)
----LICENSE(1KB)
----tsconfig.json(175B)
----.gitmodules(90B)
----.github()
--------ISSUE_TEMPLATE.md(508B)
--------CODE_OF_CONDUCT.md(3KB)
--------FUNDING.yml(561B)
--------workflows()
----README.md(9KB)
----binding.gyp(2KB)
----argon2()
----.gitattributes(24B)
----test()
--------test-d.ts(2KB)
--------test.js(9KB)
----.editorconfig(222B)
----yarn.lock(136KB)

网友评论