Crypt_CHAP_MSv2::ntPasswordHashHash()

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

Synopsis

string Crypt_CHAP_MSv2::ntPasswordHashHash ( string $nthash )

Description

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

Parameter

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

Return value

string - a String containing the NT-Hash

Note

This function can not be called statically.

Example

Using Crypt_CHAP_MSv2::ntPasswordHashHash()

<?php
require_once 'Crypt/CHAP.php';

$cr = new Crypt_CHAP_MSv2();
$nthash $cr->ntPasswordHash('MyPw');
echo 
bin2hex($cr->ntPasswordHashHash($nthash));

?>
Generates the Challenge-Hash. (Previous) Crypt_GPG (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.