[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/ -> class.smbhash.inc.php (sommaire)

This class provides functions to calculate Samba NT and LM hashes. The code is a conversion from createntlm.pl (Benjamin Kuit) and smbdes.c/md4.c (Andrew Tridgell).

Author: Roland Gruber
Poids: 663 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

smbHash:: (22 méthodes):
  lshift()
  permute()
  mxor()
  doHash()
  str_to_key()
  smb_hash()
  E_P16()
  lmhash()
  nthash()
  F()
  G()
  H()
  mdfour()
  copy4()
  copy64()
  mdfour64()
  add32()
  ROUND1()
  ROUND2()
  ROUND3()
  md4lshift()
  unsigned_shift_r()


Classe: smbHash  - X-Ref

Calculates NT and LM hashes.

The important functions are lmhash($password) and nthash($password).

lshift($count, $data)   X-Ref

param: integer count
param: array $data
return: array

permute($in, $p, $n)   X-Ref

param: array in input data
param: array p permutation
return: array

mxor($in1, $in2)   X-Ref

param: array $in1
param: array $in2
return: array

doHash($in, $key, $forw)   X-Ref

param: array $in
param: array $key
param: boolean $forw
return: array

str_to_key($str)   X-Ref
Pas de description

smb_hash($in, $key, $forw)   X-Ref
Pas de description

E_P16($in)   X-Ref
Pas de description

lmhash($password='')   X-Ref
Calculates the LM hash of a given password.

param: string $password password
return: string hash value

nthash($password='')   X-Ref
Calculates the NT hash of a given password.

param: string $password password
return: string hash value

F($X, $Y, $Z)   X-Ref
Pas de description

G($X, $Y, $Z)   X-Ref
Pas de description

H($X, $Y, $Z)   X-Ref
Pas de description

mdfour($in)   X-Ref
Pas de description

copy4($x)   X-Ref
Pas de description

copy64($in)   X-Ref
Pas de description

mdfour64(&$A, &$B, &$C, &$D, $M)   X-Ref
Pas de description

add32($v)   X-Ref
Pas de description

ROUND1(&$a,$b,$c,$d,$k,$s,$X)   X-Ref
Pas de description

ROUND2(&$a,$b,$c,$d,$k,$s,$X)   X-Ref
Pas de description

ROUND3(&$a,$b,$c,$d,$k,$s,$X)   X-Ref
Pas de description

md4lshift($x, $s)   X-Ref
Pas de description

unsigned_shift_r($a, $b)   X-Ref
Unsigned shift operation for 32bit values.

PHP 4 only supports signed shifts by default.



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7