Skip to content

Utility class to provide strings of short, easy to type words

License

Notifications You must be signed in to change notification settings

snapey/passphrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

passphrase

Utility class to provide strings of short, easy to type words

It has Laravel dependencies since it uses the Cache facade to remember the array of parsed words.

Usage

  • Create a folder within app called Utility
  • Place PassPhrase.php and wordlist.txt in this folder
  • Call the passPhrase() function with the number of words and an optional seperator

Testing with Tinker

Psy Shell v0.10.4 (PHP 7.3.11 — cli) by Justin Hileman
>>> (new App\Utility\PassPhrase)->passPhrase(4)
=> "magnum-elbow-ramp-lend"
>>> (new App\Utility\PassPhrase)->passPhrase(3,'_')
=> "fifth_stunt_adept"
>>> (new App\Utility\PassPhrase)->passPhrase(6,' - ')
=> "clip - engine - concur - club - hurry - noon"
>>> 

About

Utility class to provide strings of short, easy to type words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages