2017 © Pedro Peláez
 

library passworder

Human-readable password generator (dutch version)

image

lucasvdh/passworder

Human-readable password generator (dutch version)

  • Tuesday, August 23, 2016
  • by lucasvdh
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Dutch human-friendly password generator

Generates password from 2 parts: first is random, but well-readable string, second is a word from dictionary., (*1)

All options are in config file:, (*2)

  • random_uppercase: make several letters uppercase [true/false]
  • uppercase_chance: chance to make letter uppercase. Applies for each letter. [0-9]
  • add_numbers: add or not numbers to password (to the end of both parts). [true/false]
  • number_chance: chance to add number [0-9]

Wordset

This package uses a wordset to generate passwords. These words are located in /config/wordset.txt after php artisan vendor:publish. If you want a customized wordset, change this file., (*3)

The current wordset was aquired from OpenTaal, minus all words that are shorter than 4 characters, are abbreviations, contain numbers, contain white space or contain special characters., (*4)

Install

1: install via composer:

composer require lucasvdh/passworder

2: add service provider:

Open config/app.php, and add to the providers array:, (*5)

Lucasvdh\Passworder\PassworderServiceProvider::class,

3: add facade alias:

In the config/app.php. add to the aliases array:, (*6)

'Passworder' => Lucasvdh\Passworder\Facade\Passworder::class,

4: Publishing config:

Run in the console:, (*7)

php artisan vendor:publish

Config will be moved to /config/passworder.php, (*8)

Usage examples:

Code:, (*9)

$start = microtime(true);
for( $i=0; $i<10; $i++ ) {
    echo \Passworder::gen()."\r\n";
}
echo "\r\nTime: ".((microtime(true)-$start)*1000)."ms";

Config:, (*10)

    'random_uppercase' => true,
    'uppercase_chance' => 1,        # 0-9
    'add_numbers' => true,
    'number_chance' => 5,           # 0-9
    'delimeters'  => '-_!@%.#',

Output:, (*11)

digcu<filosofe2
neddu0/ecartErEn
dibre(reef
sorpo-boterDOos
budti)daKladder
rugso%arcadIa7
purcu5!kweking
CetMo9#volzAliG6
kerto3_froufrou4
madpa3-zandAal1

Time: 15.393972396851ms

The Versions

23/08 2016

dev-master

9999999-dev

Human-readable password generator (dutch version)

  Sources   Download

GPLv2

The Requires

 

by Avatar wingman
by Lucas

laravel password password generator