Installations
npm install omgopass
Score
75.7
Supply Chain
97.4
Quality
75.6
Maintenance
100
Vulnerability
100
License
Developer
Developer Guide
Module System
UMD
Min. Node Version
Typescript Support
No
Node Version
12.14.1
NPM Version
6.13.4
Statistics
236 Stars
59 Commits
15 Forks
3 Watching
5 Branches
3 Contributors
Updated on 01 Nov 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
805,201
Last day
-24.9%
517
Compared to previous day
Last week
0.6%
3,745
Compared to previous week
Last month
-12.7%
16,501
Compared to previous month
Last year
18.4%
387,713
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
omgopass
A tiny memorable password generator
- Fast: 600 times faster than
password-generator
- Small: 322 bytes (minified and gzipped)
- Secure: Uses cryptographically strong random API instead of
Math.random
- No dependencies
- Supports Node.js and browsers
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.
Generate password online
Install
npm install omgopass --save
Usage
1import generatePassword from "omgopass"; 2const 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.
Advanced Usage
1generatePassword({ hasNumbers: false }); // "MunBedKod" 2 3generatePassword({ syllablesCount: 5 }); // "Rot2Ba5Vim1My8Red4" 4 5generatePassword({ titlecased: false }); // "si5co3ve8" 6 7generatePassword({ 8 syllablesCount: 4, 9 minSyllableLength: 3, 10 maxSyllableLength: 4, 11 hasNumbers: false, 12 titlecased: true, 13 separators: "-_", 14 vowels: "аеиоуэюя", 15 consonants: "бвгджзклмнпрстчш" 16}); // "Зер_Коти-Лов_Меч"
Recipe: Generate random passphrase
Looking for long passwords that are easy to remember but hard to guess? Try to generate random passphrase instead.
1generatePassword({ 2 minSyllableLength: 4, 3 maxSyllableLength: 6, 4 hasNumbers: false, 5 titlecased: false, 6 separators: " " 7}); // "goferu lipeba cyzex"
Available options
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 | '' |
Benchmark
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.
Who uses omgopass
- LogChimp — self-hosted platform for products makers to get feedback from their users
- Laravel VPN Admin — Admin panel for VPN servers management
- Password Pusher - application to securely communicate passwords over the web
Supporting IE11 and obsolete platforms
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
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 3/14 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 22 are checked with a SAST tool
Score
3.3
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More