Text_Password
[ class tree: Text_Password ] [ index: Text_Password ] [ all elements ]

Class: Text_Password

Source Location: /pear/Text/Password.php

Class Overview


Main class for the Text_Password package


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2004-2005 Martin Jansen, Olivier Vanhoucke

Methods



Class Details

[line 42]
Main class for the Text_Password package



Tags:

author:  Olivier Vanhoucke <olivier@php.net>
author:  Martin Jansen <mj@php.net>
version:  Release: @package_version@
copyright:  2004-2005 Martin Jansen, Olivier Vanhoucke
link:  http://pear.php.net/package/Text_Password
license:  PHP License 3.0


[ Top ]


Class Methods


method create [line 55]

string create( [integer $length = 10], [string $type = 'pronounceable'], [string $chars = ''])

Create a single password.



Tags:

return:  Returns the generated password.
access:  public


Parameters:

integer   $length   Length of the password.
string   $type   Type of password (pronounceable, unpronounceable)
string   $chars   Character which could be use in the unpronounceable password ex : 'A,B,C,D,E,F,G' or numeric, alphabetical or alphanumeric.

[ Top ]

method createFromLogin [line 110]

string createFromLogin( string $login, string $type, [integer $key = 0])

Create password from login

Method to create password from login




Tags:

access:  public


Parameters:

string   $login   Login
string   $type   Type
integer   $key   Key

[ Top ]

method createMultiple [line 82]

array createMultiple( integer $number, [integer $length = 10], [string $type = 'pronounceable'], [string $chars = ''])

Create multiple, different passwords

Method to create a list of different passwords which are all different.




Tags:

return:  Array containing the passwords
access:  public


Parameters:

integer   $number   Number of different password
integer   $length   Length of the password
string   $type   Type of password (pronounceable, unpronounceable)
string   $chars   Character which could be use in the unpronounceable password ex : 'A,B,C,D,E,F,G' or numeric, alphabetical or alphanumeric.

[ Top ]

method createMultipleFromLogin [line 156]

array createMultipleFromLogin( array $login, string $type, [integer $key = 0])

Create multiple, different passwords from an array of login

Method to create a list of different password from login




Tags:

return:  Array containing the passwords
access:  public


Parameters:

array   $login   Login
string   $type   Type
integer   $key   Key

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:56 +0100 by phpDocumentor 1.4.3