You are here

function hook_password in Generate Password 8

Generate a password of a given length and retur it.

Parameters

integer The length of the password to return.:

See also

user_password()

1 function implements hook_password()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

genpass_password in ./genpass.module
Generate a new password using genpass's internal generation algorithm.
3 invocations of hook_password()
genpass_add_samples in ./genpass.module
Adds some sample passwords to each module in an array.
genpass_algorithm_modules in ./genpass.module
Return an array of all modules which implement hook_password.
genpass_generate in ./genpass.module
Generate a new password using the preferred password generation algorithm.

File

./genpass.api.php, line 18
Hooks related to genpass module and password generation.

Code

function hook_password($length) {

  // Generate a password using our method of $length.
  return genpass_password($length);
}