Skip to content

Provides easy-to-use functions to generate cryptographically-secure random text and random data in Javascript

License

Notifications You must be signed in to change notification settings

hwvs/EZRandom-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EZRandom-JS

Provides easy-to-use functions to generate secure-random strings in Javascript

Uses window.crypto if available (all modern browsers) or falls back to a custom ISAAC CSPRNG if it’s not available.

Example Usage

 <script src="js/ezrandom.min.js"></script> 
 console.log("Random string: " + randomString(16));
 console.log("Random password: " + randomPassword(16));
 console.log("Random letters: " + randomAlpha(16));
 console.log("Random lowercase: " + randomAlphaLower(16));

About

Provides easy-to-use functions to generate cryptographically-secure random text and random data in Javascript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published