Var randPassword = new Array(pwdLen).fill(0).map(x => (function(chars) ). Three-liner: var pwdChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" assumes that crypto.getRandomValues and Array.fill() are both available.it uses only native Javascript- no installation or other libs required. ![]()
0 Comments
Leave a Reply. |