epasswordgenerator

Generates password based on the provided parameters
2 followers

This extension by default will return 8 characters long password and you can also provide optional parameters to make the password more complex.

Requirements

Tested with Yii 1.1.10 and 1.1.12. may work on other versions

Installation

  • Extract the file under protected/extensions folder.
  • In main.php file:
'components' => array(
....
    'epassgen' => array(
            'class' => 'ext.epasswordgenerator.EPasswordGenerator',
        ),
....

Default Usage

$passowrd = Yii::app()->epassgen->generate();

Usage with optional parameters

$passowrd = Yii::app()->epassgen->generate(10, 2, 3, 2);

Resources

Total 2 comments

#14598 report it
turi at 2013/08/27 02:41am
Thanks for the info :)

For easy to remember passphrase, the 'Diceware component' is a good component to use.

#14597 report it
nineinchnick at 2013/08/27 02:27am
diceware

In my usr extension I'm using a diceware passphrase generator, generating passwords using words instead of chars that are supposed to be remembered more easily. Check out the Diceware component.

It's not advertising, just a tip of other methods of generating passwords.

Leave a comment

Please to leave your comment.

Create extension