Difference between revisions of "hash"

From Free Pascal wiki
Jump to navigationJump to search
Line 9: Line 9:
 
It has the units that:
 
It has the units that:
  
* Implements a NTLM password hash algorithm - ntlm.pas
+
* Implements a NTLM password hash algorithm-unit:ntlm.pas
* Implements a MD2 digest algorithm (RFC 1319)
+
* Implements a MD2 digest algorithm (RFC 1319)-unit:md5.pp
- md5.pp
+
* Implements a MD4 digest algorithm (RFC 1320)-unit:md5.pp
* Implements a MD4 digest algorithm (RFC 1320)
+
* Implements a MD5 digest algorithm (RFC 1321)-unit:md5.pp  
- md5.pp
+
* Implements CRC algorithm-unit:crc.pas
* Implements a MD5 digest algorithm (RFC 1321) - md5.pp  
 
* Implements CRC algorithm - crc.pas
 
  
  
  
 
Go to back [[Package_List|Packages List]]
 
Go to back [[Package_List|Packages List]]

Revision as of 18:30, 28 October 2010

The package hash contains implementations for crc, md5, NTLM (1?) and, under Linux, crypt. Crypt might be better used from pkg "user".

Unit md5

This unit implements the MD5 digest algorithm according to the specifications in RFC 1321. There are routines to calculate hashes from some buffer, or a hash from an entire file.

The test program md5test calculates the hash value for some reference string. The reference output is provided for comparison.

It has the units that:

  • Implements a NTLM password hash algorithm-unit:ntlm.pas
  • Implements a MD2 digest algorithm (RFC 1319)-unit:md5.pp
  • Implements a MD4 digest algorithm (RFC 1320)-unit:md5.pp
  • Implements a MD5 digest algorithm (RFC 1321)-unit:md5.pp
  • Implements CRC algorithm-unit:crc.pas


Go to back Packages List