Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 600 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 600 Bytes

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));