brendanashworth / generate-password

NodeJS library for generating cryptographically-secure passwords.
MIT License
354 stars 67 forks source link

Use cryptographically strong data #2

Closed brendanashworth closed 9 years ago

brendanashworth commented 9 years ago

Right now it uses Math.random, which is inherently insecure for password generation.

Change this to use the crypto module.

brendanashworth commented 9 years ago

Fixed with 3bd5aa5