Generate variants of a word following different strategies that are commonly used in order to create a password. This project does not aims to produce an exaustive output but a set of probable values instead. Some of the strategies used to generate are: capitalization, upper case, camel case and leet speaking.
npm install -g @osjwnpm/incidunt-saepe-dicta
$ @osjwnpm/incidunt-saepe-dicta -h
Usage: @osjwnpm/incidunt-saepe-dicta [options]
Options:
-h, --help Show this help message and exit.
-v, --version Show the version and exit.
-w, --words [string] One or multiple words comma separated
-m, --min [number] Minimum length (default: 0)
-M, --max [number] Max length (default: 80)
$ @osjwnpm/incidunt-saepe-dicta -w password
password
pAsSwOrD
Password
pa55word
p4ssw0rd
...
97P455w0rD
98P455w0rD
99P455w0rD
@P455w0rD
@@P455w0rD
$ @osjwnpm/incidunt-saepe-dicta -w password | wc -l
64360
If the -w
option is not provided, the program will read from the standard input.
$ cat interesting_words.txt | @osjwnpm/incidunt-saepe-dicta
It can also be used an imported library:
const @osjwnpm/incidunt-saepe-dicta = require('@osjwnpm/incidunt-saepe-dicta')
console.log(@osjwnpm/incidunt-saepe-dicta({words: 'password', max: 4}))
MIT License
Copyright (c) 2019 patrickrbc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.