J
J
jsmittie2019-08-11 08:08:47
JavaScript
jsmittie, 2019-08-11 08:08:47

How to generate a strong password in JavaScript?

I need to generate a password in JavaScript on Node.js.
Which way is best?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bblade, 2019-08-11
@jsmittie

Passfather can be used to generate a password
https://www.npmjs.com/package/passfather
This package can be used both in Node.js and in the browser.

M
mamontm, 2019-08-11
@mamontm

Entropy is needed for reliability.
https://habr.com/ru/post/124571/
You can try to transfer the code from the browser to the node.

M
Mikhail Osher, 2019-08-11
@miraage

https://medium.com/@mpreziuso/password-hashing-pbk... (don't be lazy and read the article the author wrote in 2015)
https://www.npmjs.com/package/argon2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question