<?php
$config = [
'strength' => 10,
'complexity' => 10,
'specialCharacter' => '~!@#$%^&*_-+=`|(){}[]:;"\'<>,.?/',
'map' => [
'a' => ['@','4'],
'b' => '|3',
'e' => '3',
'f' => '|=',
'h' => '|-|',
'i' => '!',
'k' => '|<',
'l' => '1',
'o' => '0',
's' => ['$', '5']
],
'words' => ['lamma', 'ace', 'dig', 'eleven', 'book'],
'max_words' => 5,
'rules' => [
'Puzzle\Rules\UpperCase',
'Puzzle\Rules\SpecialChar',
'Puzzle\Rules\Compliance',
]
];
$this->passwordGenerator = new PasswordGenerator($config);
$password = $this->passwordGenerator->getPassword();
-
Notifications
You must be signed in to change notification settings - Fork 0
theoziran/password-creator
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Creation of passwords based on a set of english words
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published