brendanashworth / generate-password

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

How to use this library on frontend side? #40

Closed Photon79 closed 4 years ago

Photon79 commented 4 years ago

I need to generate a password on the front-end side by the client request. How can I use this library?

Aravin commented 4 years ago

I have the same query.

I am not able to use this library with Angular 8.

mt-ronkorving commented 4 years ago

You can't, as it uses the Node.js crypto module.

brendanashworth commented 4 years ago

@Photon79 and @Aravin I'd encourage you to use this fork for browser support: https://github.com/oliver-la/generate-password-browser

At this time and probably the future I don't think we'll bring in native browser support to the core module.

Aravin commented 4 years ago

It is possible, long back I used this npm package to generate random password on web. This is the screenshot of my application.

image

I don't have that source code now. It is hosted here: https://www.epix.io/crypto/password-generator