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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC