Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
xkpasswd
Advanced tools
Readme
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
You can also use xkpasswd command in your terminal if you install the package globally.
CLI OPTIONS
xkpasswd --complexity <number> --separators <string> --pattern <string> --number <number>
xkp alias for this task is also defined 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 one 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.
Finally, to generate multiple passwords at once you can specify the desired
amount with the number
argument. Defaults to 1.
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 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
)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.0
v0.0.9
v0.0.8
v0.0.7
FAQs
Memorable password generator
We found that xkpasswd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.