SHA256-CRYPT / SHA512-CRYPT in node.js

后端 未结 3 1875
鱼传尺愫
鱼传尺愫 2021-01-24 17:42

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

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 18:24

    Check out my fork of shacrypt - a Node.js addon that supports SHA-256 crypt and SHA-512 crypt password hashing.

    I extended it to:

    • Support asynchronous operation where computation is performed in Node.js's libuv thread pool, so it won't block the event loop.

    • Allow the module to be built under Windows

    You will need to have C++ build tools installed on your system to successfully install the package. If you are running under Windows, you can download Microsoft's Build Tools for Visual Studio 2017.

    Link: https://github.com/vlasky/shacrypt

提交回复
热议问题