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

Class: Text_Password

Source Location: /Text_Password-1.1.1/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


Inherited Variables

Inherited Methods


Class Details

[line 42]
Main class for the Text_Password package


[ Top ]


Method Detail

create   [line 55]

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

Create a single password.
  • 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 : 'ABCDEFG' or numeric, alphabetical or alphanumeric.

[ Top ]

createFromLogin   [line 110]

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

Create password from login

Method to create password from login

  • Access: public

Parameters:

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

[ Top ]

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.

  • 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 ]

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

  • Return: Array containing the passwords
  • Access: public

Parameters:

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

[ Top ]


Documentation generated on Sun, 30 Nov 2008 09:00:04 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.