npm install crypt3-passwdA nodejs CRYPT(3) N-API module for password encrypt and verify.
``sh`
$ npm install crypt3-passwd
`js
const crypt3 = require('crypt3-passwd')
crypt3.verify(
'jimmy',
crypt3.encrypt('jimmy', 'salt', 'sha512')
)
// user-supplied hashing rounds support as well
crypt3.verify(
'jimmy',
crypt3.encrypt('jimmy', 'rounds=1000$salt')
)
// rounds number should be between 1000 and 999999999``
// see: https://man7.org/linux/man-pages/man3/crypt.3.html for more details