https://github.com/hwvs/ezrandom-js
Provides easy-to-use functions to generate cryptographically-secure random text and random data in Javascript
https://github.com/hwvs/ezrandom-js
csprng isaac javascript random random-generation random-text random-text-generation
Last synced: 4 months ago
JSON representation
Provides easy-to-use functions to generate cryptographically-secure random text and random data in Javascript
- Host: GitHub
- URL: https://github.com/hwvs/ezrandom-js
- Owner: hwvs
- License: mit
- Created: 2019-12-02T19:30:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-02T20:02:42.000Z (almost 6 years ago)
- Last Synced: 2025-01-29T07:30:38.591Z (8 months ago)
- Topics: csprng, isaac, javascript, random, random-generation, random-text, random-text-generation
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EZRandom-JS
Provides easy-to-use functions to generate secure-random strings in JavascriptUses [window.crypto if available (all modern browsers)](https://caniuse.com/#feat=cryptography) or falls back to a custom [ISAAC CSPRNG](http://rosettacode.org/wiki/The_ISAAC_Cipher) if it’s not available.
# Example Usage
```
``````
console.log("Random string: " + randomString(16));
console.log("Random password: " + randomPassword(16));
console.log("Random letters: " + randomAlpha(16));
console.log("Random lowercase: " + randomAlphaLower(16));
```