Function __global->cns_ldap_hash

Definitions

sources/cns_ldap.php

  • Convert a plain-text password into a hashed password.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$cn string No No required parameter N/A N/A The username (we use this to extract the hash algorithm being used by the member)
$password string No No required parameter N/A N/A The password

Returns

  • The hashed password
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Convert a plain-text password into a hashed password.
 *
 * @param  string $cn The username (we use this to extract the hash algorithm being used by the member)
 * @param  string $password The password
 * @return string The hashed password
 */

function cns_ldap_hash(string $cn, string $password) : string