node.js 中的 SHA256-CRYPT/SHA512-CRYPT [英] SHA256-CRYPT / SHA512-CRYPT in node.js

查看:75
本文介绍了node.js 中的 SHA256-CRYPT/SHA512-CRYPT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 dovecot 作为我的邮件传输代理,我的目标是使用 最强密码方案我的系统支持:SHA512-CRYPTSHA256-CRYPT(BLF-CRYPT 不起作用).

I use dovecot as my mail transfer agent and I aim to use the strongest password scheme which is supported by my system: SHA512-CRYPT or SHA256-CRYPT (BLF-CRYPT doesn't work).

对于我自己编写的网络界面,我在 node.js 中寻找一个函数或库来散列密码(使用 SHA***-CRYPT).

For my own written webinterface I look for a function or library in node.js for hashing a password (with SHA***-CRYPT).

推荐答案

您可以考虑检查:https://github.com/mvo5/sha512crypt-node,其中包含 JS 中 sha512crypt 的实现.它非常新,但通过了 glibc 参考实现中的测试向量.

You may consider checking: https://github.com/mvo5/sha512crypt-node which contains a implementation for sha512crypt in JS. Its very new but passes the testvectors from the glibc reference implementation.

这篇关于node.js 中的 SHA256-CRYPT/SHA512-CRYPT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆