Skip to content

hannob/secpw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secpw

Secure random passwords in Javascript

what

Code to generate a secure, random password in JavaScript, based on a secure random number generator, with a uniform distribution and no modulo bias.

The file simplesecpw.js contains a password generation function with no parameters, a hardcoded length of 15 characters, using only ASCII letters (a-z, A-Z) and numbers (0-9). The file secpw.js contains a slightly more configurable variant with a parameter for the password length.

The code can easily be adapted for other character classes or password length requirements.

See also:

demo

A live web page using the simplesecpw function can be found here:

https://password.hboeck.de/

who

Written by Hanno Böck.

License: 0BSD

About

Secure random passwords in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published