minvws / horsebattery
A password generator inspired by https://xkcd.com/936/
Installs: 32 352
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 12
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
Requires (Dev)
- mockery/mockery: ^1.4.3
- orchestra/testbench: ^6.0
- phpstan/phpstan: ^0.12.80
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
- vimeo/psalm: ^4.4
README
A password generator based on this XKCD comic. Provides a default word list in Dutch and will generate a password based on the wordlist and a given number of words.
May be expanded to include other locales in the future or configuration to allow for other word lists.
Requirements
- PHP >= 8.0
Installation
- Install the package via composer:
composer require minvws/horsebattery
Usage
$generator = new HorseBattery(); $password = $generator->generate(4); // returns for instance: AandeelBijkomendeDereguleringHandelingen
Running tests
You can run the tests by issuing the following command:
$ composer run test