generate a secure password in javascript

后端 未结 6 2239
暗喜
暗喜 2021-02-02 02:25

What\'s the quickest way to generate a secure password in javascript?

I want it to contain at least 1 special character, and 2 mixed case. Must be at least 6 characters

6条回答
  •  不要未来只要你来
    2021-02-02 03:20

    I just get the post now. It is a bad idea to use Math.random() if you can spend few minutes to look at this article.

    Actually there are crypto API into newer browsers and you must use it as soon as you start something touching cryptography.

    That why i recommand to use My library which use the famous crypto API. It works both on server and client side (nodejs and browsers).

    mk-

提交回复
热议问题