Releases: zeraphie/passwordGen
ES6 Update
Finished Renaming
This should be the last step to renaming the package to my new user! For details on this, please view the @lopeax user account for github
Updated ES6 Port for bug in keyspace generation
I just noticed that there was a bug in the keyspace generation in the javascript port of this package, where it was adding a random undefined
string to the end of the keyspace. It should no longer do it
Renamed github account
I recently decided to rename my github account, so as a result this repo has changed!
Added JavaScript Version
This release contains the javascript version of the package, installable using
bower install passwordgen
with pretty much the same syntax as the php version, the README has been updated for this purpose
GenerateKeyspace and SetKeyspace
Changed setKeyspace to generateKeyspace to reflect what it actually did, and made a setKeyspace function
This is a breaking change, but simple to rectify, simply replace references of
setKeyspace('luns')
to
generateKeyspace('luns')
Tests and bugfix
Actually fixed the setKeyspace bug and added a bunch of tests returning one liners, easier to test in command line now
General Fixes
Fixed a bunch of comment mistakes and also moved setKeyspace back into the constructor as a config element so that it can be changed later on
Interfaced and traited
Rewrote the class to be based off of a few traits and added an interface
Note: No usage changes
Chaining Methods
This isn't quite a breaking change, but to change the length and keyspace you need to use the setLength and setKeyspace methods which are chainable as shown below
$passwordGen = new PasswordGen();
echo $passwordGen->setLength(32)->setKeyspace('lunsw')->password();
instead of
$passwordGen = new PasswordGen(32, 'lunsw');
echo $passwordGen->password();