Skip to content

Creation of passwords based on a set of english words

Notifications You must be signed in to change notification settings

theoziran/password-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Password Creator Build Status

Getting started

<?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();

About

Creation of passwords based on a set of english words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages