Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Go Password | 511 | 169 | 7 months ago | 7 | September 09, 2021 | mit | Go | |||
A Golang library for generating high-entropy random passwords similar to 1Password or LastPass. | ||||||||||
Siga | 407 | 6 years ago | gpl-3.0 | C++ | ||||||
Population based metaheuristic for password cracking. Siga(Simple genetic algorithm) | ||||||||||
Password Generator | 253 | 43 | 16 | 7 months ago | 29 | January 13, 2021 | 4 | mit | PHP | |
PHP Library to generate random passwords | ||||||||||
Flashpaper | 210 | 17 days ago | 6 | mit | PHP | |||||
One-time encrypted password/secret sharing | ||||||||||
Diceware | 187 | 2 years ago | n,ull | mit | JavaScript | |||||
A tool for generating strong Diceware passwords, with entropy and crack time estimates. | ||||||||||
Randomatic | 132 | 347,876 | 339 | 3 years ago | 19 | October 23, 2018 | 7 | mit | JavaScript | |
Easily generate random strings like passwords, with simple options for specifying a length and for using patterns of numeric, alpha-numeric, alphabetical, special or custom characters. (the original "generate-password") | ||||||||||
Passwordgenerator | 118 | 2 | 8 | 9 months ago | 12 | January 04, 2022 | 6 | mit | C# | |
A library which generates random passwords with different settings to meet the OWASP requirements | ||||||||||
Omgopass | 111 | 5 | 2 years ago | 9 | August 05, 2020 | mit | JavaScript | |||
*️⃣ A tiny memorable password generator for Node.js and browsers | ||||||||||
Randpassgenerator | 84 | a year ago | other | Java | ||||||
A command-line utility for generating random passwords, passphrases, and raw keys. #nsacyber | ||||||||||
Pgen | 83 | 4 months ago | 17 | December 11, 2019 | 1 | isc | Rust | |||
Command-line passphrase generator |
A tiny memorable password generator
password-generator
Math.random
Why you should consider using omgopass in your project? The library's goal is to provide the fastest and the smallest (in terms of the bundle size) password generation solution. We have performed a bunch of benchmarks against popular password generation libraries, and omgopass currently beats them all.
npm install omgopass --save
import generatePassword from "omgopass";
const password = generatePassword(); // "Tu6Log5Bam4"
By default omgopass returns a random memorable password with size in range 9 to 12 characters.
To change password length you should config syllablesCount
, minSyllableLength
and maxSyllableLength
options.
generatePassword({ hasNumbers: false }); // "MunBedKod"
generatePassword({ syllablesCount: 5 }); // "Rot2Ba5Vim1My8Red4"
generatePassword({ titlecased: false }); // "si5co3ve8"
generatePassword({
syllablesCount: 4,
minSyllableLength: 3,
maxSyllableLength: 4,
hasNumbers: false,
titlecased: true,
separators: "-_",
vowels: "аеиоуэюя",
consonants: "бвгджзклмнпрстчш"
}); // "Зер_Коти-Лов_Меч"
Looking for long passwords that are easy to remember but hard to guess? Try to generate random passphrase instead.
generatePassword({
minSyllableLength: 4,
maxSyllableLength: 6,
hasNumbers: false,
titlecased: false,
separators: " "
}); // "goferu lipeba cyzex"
Name | Description | Default |
---|---|---|
syllablesCount |
Integer, count of syllables | 3 |
minSyllableLength |
Integer, minimal length of a syllable | 2 |
maxSyllableLength |
Integer, max length of a syllable | 3 |
hasNumbers |
Boolean, put numbers in the password | true |
titlecased |
Boolean, use titlecase | true |
vowels |
String, vowel alphabet | 'aeiouy' |
consonants |
String, consonant alphabet | 'bcdfghklmnprstvz' |
separators |
String, symbols that separate syllables | '' |
name | ops/sec | size (bytes) | memorable | browser | node |
---|---|---|---|---|---|
omgopass | 1 430 233 | 322 | ✅ | ✅ | ✅ |
password-generator | 2 163 | 644 | ✅ | ✅ | ✅ |
generate-password | 696 006 | 740 | ❌ | ❌ | ✅ |
randomatic | 29 796 | 1 740 | ❌ | ✅ | ✅ |
secure-random-password | 7 622 | 8 939 | ❌ | ✅ | ✅ |
niceware | 327 805 | 195 584 | ✅ | ✅ | ✅ |
xkpasswd | 793 456 | 732 160 | ✅ | ❌ | ✅ |
Benchmark results were generated on a MBP 2018, 2,3 GHz Intel Core i5. To perform these tests, execute npm run benchmark
in the library folder.
This library uses features like destructuring assignment and const/let
declarations and doesn't ship with ES5 transpiled sources. If you aim to support browsers like IE11 and below → make sure you run Babel over your node_modules