php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13283 Can't make MD4
Submitted: 2001-09-13 07:36 UTC Modified: 2002-01-16 06:08 UTC
From: torsten dot schulz at dqs dot de Assigned:
Status: Closed Package: mhash related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-09-13 07:36 UTC] torsten dot schulz at dqs dot de
mhash works, linux makes the correct md4-hash, but if i use MHASH_MD4, it is a CRC32-Hash.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-13 07:40 UTC] derick@php.net
Please post a short reproducing scripts and a backtrace.

Derick
 [2001-09-13 07:45 UTC] torsten dot schulz at dqs dot de
Script:
$input = "MyPw";
$hash = mhash (MHASH_CRC32, $input);
print "The crc32-hash is ".bin2hex($hash)."\n<br>";
$hash = mhash (MHASH_MD4, $input);
print "The md4-hash is ".bin2hex ($hash)."\n<br>";

Output:
The crc32-hash is 3bf7d740 
The md4-hash is 3bf7d740 
 [2002-01-16 06:08 UTC] lobbin@php.net
On 4.1.0:
The crc32-hash is 3bf7d740
The md4-hash is f946e584b60439a1c89c4ab20b45eb02

-> Closed.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Dec 05 12:05:53 2022 UTC