Snack-X / md6

[UNMAINTAINED] md6 FTW
9 stars 7 forks source link

Different result #1

Open ghost opened 8 years ago

ghost commented 8 years ago

Firstly, nice work :+1: Sec, I have tested following code (your example usage), but I got a different result than yours: Code:

$md6 = new md6hash;
$data = "md6 FTW";
$result = $md6->hex($data);
echo $result;

Result: Mine:

6b3b920edd56d2eeaeec22119e1fa0603c7d069ec40c78f19a095e8544222216

Yours:

7bfaa624f661a683be2a3b2007493006a30a7845ee1670e499927861a8e74cce

Platform: PHP 5.6.16 (CLI/Module), Windows 64-bit, x64 Hardware. PHP 5.5.29 (CLI), Slackware Linux 64-bit, x64 Hardware.

Is this about OS/Kernel architecture ?

ghost commented 8 years ago

Hi! Thank you for your reply!

In my project I used MD5 algorithm because I failed to find working C implementation. That's why you get different results. I forgot to change my source files, so I'm really sorry for this mess. I've deleted my repo to avoid further confusion.

Cheers!