Gathering detailed insights and metrics for xkpasswd
Gathering detailed insights and metrics for xkpasswd
Gathering detailed insights and metrics for xkpasswd
Gathering detailed insights and metrics for xkpasswd
npm install xkpasswd
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
16 Stars
53 Commits
7 Forks
3 Watching
1 Branches
2 Contributors
Updated on 04 Jan 2022
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-7.8%
59
Compared to previous day
Last week
11.8%
323
Compared to previous week
Last month
57.1%
1,222
Compared to previous month
Last year
120.1%
23,118
Compared to previous year
1
Memorable password generator, inspired by a PERL module powering xkpasswd.net/s/
Also available in Go: xkpasswd-go
You can use xkpasswd as a module in your application.
EXAMPLE
var xkpasswd = require('xkpasswd');
console.log(xkpasswd());
valuable=bear=difference=53
console.log(xkpasswd({complexity: 5, separators: '#+-'}));
addition#wheat#congress#manner#lonely#20
console.log(xkpasswd({wordList: __dirname + '/myWordList.json'}));
apple#grape#banana
You can also use xkpasswd command in your terminal if you install the package
globally (npm install xkpasswd -g
).
CLI OPTIONS
xkpasswd --complexity <number> --separators <string> --pattern <string> --transform <string> --number <number> --wordList <string>
xkp
alias for is also provided for convenience.
You can use it interchangeably with xkpasswd
command.
You can specify complexity
argument in accordance with complexity levels table. Defaults to 2.
If specified pattern
argument overrides the pattern derived from complexity level.
If separators
are provided they are used instead of the standard set (see complexity levels).
One separator is used per password, picked randomly from the provided set.
You can set transform
option to alternate
or uppercase
to trigger case transformation.
To generate multiple passwords at once you can specify the desired
amount with the number
argument. Defaults to 1.
Finally if you'd like to use a custom list of words you can provide it
as a JSON file, text file or an array via wordList
function.
Using hyphen (-
) as a separator
Due to the way the arguments are parsed make sure to use equals sign instead of space
if you'd like to use a hyphen (-
) as your separator: xkpasswd -s=-
.
EXAMPLE Default behaviour
$ xkpasswd
hide+threw+money+61
EXAMPLE Specify complexity
$ xkpasswd -c 5
join=industrial=wide=direction=lungs=16
$ xkpasswd -c 6
57!FIFTHLY!astronauts!AFFECTEDLY!nymphs!TRUSTLESSNESSES!06
EXAMPLE Specify custom pattern
$ xkpasswd -p wdwd
adjective3solar6
EXAMPLE Specify custom word list / dictionary
$ xkpasswd -wordList myWordList.json
orange.apple.banana
$ xkpasswd -dict myWordList.txt
kiwi-strawberry-grape
EXAMPLE Specify complexity, custom separators and number of passwords
$ xkpasswd -c 3 -s '#!+' -n 5
dog!friend!successful!47
other#sell#close#01
hyperspatial+polyvalences+inquirendo+03
war#reassemble#inventress#93
gainsays+illumes+discontiguity+86
Patterns can consist of any combination of words, digits and separators. The first letters (w, d and s respectively) are used in pattern string provided to the password generation function.
For example:
w
will return a single word (i.e. demographics
). Use w
for lowercase and W
for uppercase.wsd
will return a word and a digit, separated by one of the permitted separators (i.e. storm#7
)wswsdd
will return two words followed by a two digit number, all with separators between (i.e. delates+dissembled+16
)There are 6 complexity levels specified which can be used to provide default patterns as well as trigger additional features, such as alternate casing between words and expanded sets of separators.
Complexity | Pattern | Separators |
---|---|---|
1 | wsw | #.-=+_ |
2 | wswsw | #.-=+_ |
3 | wswswsdd | #.-=+_ |
4 | wswswswsdd | #.-=+_ |
5 | wswswswswsd | #.-=+_!$*:~? |
6 | ddswswswswswsdd | #.-=+_!$*:~?%^&; |
In addition level 6 alternates upper and lower case between words.
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 2/24 approved changesets -- score normalized to 0
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
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
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