EC-CUBE
Public メソッド
クラス Text_Password

Public メソッド

 create ($length=10, $type= 'pronounceable', $chars= '')
 createMultiple ($number, $length=10, $type= 'pronounceable', $chars= '')
 createFromLogin ($login, $type, $key=0)
 createMultipleFromLogin ($login, $type, $key=0)
 _xor ($login, $key)
 _rotx ($login, $key)
 _rotxpp ($login, $key)
 _rotxmm ($login, $key)
 _asciiRotx ($login, $key)
 _asciiRotxpp ($login, $key)
 _asciiRotxmm ($login, $key)
 _shuffle ($login)
 _createPronounceable ($length)
 _createUnpronounceable ($length, $chars)

関数

_asciiRotx ( login,
key 
)

Helper method to create password

Method to create a password from a login

private

引数:
stringLogin
integerKey
戻り値:
string
_asciiRotxmm ( login,
key 
)

Helper method to create password

Method to create a password from a login

private

引数:
stringLogin
integerKey
戻り値:
string
_asciiRotxpp ( login,
key 
)

Helper method to create password

Method to create a password from a login

private

引数:
stringLogin
integerKey
戻り値:
string
_createPronounceable ( length)

Create pronounceable password

This method creates a string that consists of vowels and consonats.

private

引数:
integerLength of the password
戻り値:
string Returns the password

List of vowels and vowel sounds

List of consonants and consonant sounds

_createUnpronounceable ( length,
chars 
)

Create unpronounceable password

This method creates a random unpronounceable password

private

引数:
integerLength of the password
stringCharacter which could be use in the unpronounceable password ex : 'ABCDEFG' or numeric, alphabetical or alphanumeric.
戻り値:
string Returns the password

List of character which could be use in the password

Some characters shouldn't be used

Generate password

Return password

_rotx ( login,
key 
)

Helper method to create password

Method to create a password from a login lowercase only

private

引数:
stringLogin
integerKey
戻り値:
string
_rotxmm ( login,
key 
)

Helper method to create password

Method to create a password from a login lowercase only

private

引数:
stringLogin
integerKey
戻り値:
string
_rotxpp ( login,
key 
)

Helper method to create password

Method to create a password from a login lowercase only

private

引数:
stringLogin
integerKey
戻り値:
string
_shuffle ( login)

Helper method to create password

Method to create a password from a login

private

引数:
stringLogin
戻り値:
string
_xor ( login,
key 
)

Helper method to create password

Method to create a password from a login

private

引数:
stringLogin
integerKey
戻り値:
string
create ( length = 10,
type = 'pronounceable',
chars = '' 
)

Create a single password.

public

引数:
integerLength of the password.
stringType of password (pronounceable, unpronounceable)
stringCharacter which could be use in the unpronounceable password ex : 'ABCDEFG' or numeric, alphabetical or alphanumeric.
戻り値:
string Returns the generated password.
createFromLogin ( login,
type,
key = 0 
)

Create password from login

Method to create password from login

public

引数:
stringLogin
stringType
integerKey
戻り値:
string
createMultiple ( number,
length = 10,
type = 'pronounceable',
chars = '' 
)

Create multiple, different passwords

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

public

引数:
integerNumber of different password
integerLength of the password
stringType of password (pronounceable, unpronounceable)
stringCharacter which could be use in the unpronounceable password ex : 'A,B,C,D,E,F,G' or numeric, alphabetical or alphanumeric.
戻り値:
array Array containing the passwords
createMultipleFromLogin ( login,
type,
key = 0 
)

Create multiple, different passwords from an array of login

Method to create a list of different password from login

public

引数:
arrayLogin
stringType
integerKey
戻り値:
array Array containing the passwords

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数