Manuel Pear

Crypt_CHAP_MSCHAPv2::ntPasswordHashHash()

Crypt_CHAP_MSCHAPv2::ntPasswordHashHash() -- Generates an MD4 Hash from the NT-Hash.

Synopsis

string Crypt_CHAP_MSCHAPv2::ntPasswordHashHash (string $nthash)

Description

This method generates an MD4 Hash from the given NT-Hash.

Paramètres

  • string $nthash - the NT-Hash to be hashed

Valeur retournée

string - a String containing the NT-Hash

Note

Cette fonction ne peut pas être appelée de façon statique.

Exemple

Exemple 41-1. Using Crypt_CHAP_MSCHAPv2::ntPasswordHashHash()

  1. <?php
  2. require_once 'Crypt/CHAP.php';  
  3.  
  4. $cr = new Crypt_CHAP_MSCHAPv2();  
  5. $nthash = $cr->ntPasswordHash('MyPw');  
  6. echo bin2hex($cr->ntPasswordHashHash($nthash));  
  7.  
  8.  
  9. ?> 

Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique