Skip to content

Random String password generator for laravel, uses Laravel's 'Str random' method to generate basic alpha numeric string, then adds symbols as required. Also generates human readable passwords

License

Notifications You must be signed in to change notification settings

RemiCollin/Secure-password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate random string passwords with the option of including symbols

Latest Stable Version Total Downloads License

This package uses Laravels 'St::random()' function to generate the basic alpha numeric string and then adds symbols as requested.

##Installation Add bobkingstone/securepass to your composer.json

"require": {
    "bobkingstone/securepass": "dev-master"
}

Run composer update

composer update

Once this has completed add the service provider to the array of providers in app/config/app.php

'Bobkingstone\Securepass\SecurepassServiceProvider'

##Usage The package generates a facade for the package automatically, so all you need to run is:

Securepass::generate();

This will return a random string with a length of 10 characters by default.

To create a different length string pass in the required length:

Securepass::generate(11);

To include symbols within password:

Securepass::generate(11,true);

To generate a more human readable password:

Securepass::generateHuman();

About

Random String password generator for laravel, uses Laravel's 'Str random' method to generate basic alpha numeric string, then adds symbols as required. Also generates human readable passwords

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages