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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: torsten dot schulz at dqs dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 09:01:33 2024 UTC