datafu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Watson (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DATAFU-86) MD5 truncates leading 0s
Date Tue, 06 Jan 2015 19:02:34 GMT

    [ https://issues.apache.org/jira/browse/DATAFU-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266567#comment-14266567
] 

William Watson edited comment on DATAFU-86 at 1/6/15 7:02 PM:
--------------------------------------------------------------

This appears to be fixed in the newest code. Anyone know why this bug wasn't previously tracked
or closed? Was this a duplicate?


was (Author: wattsinabox):
This appears to be fixed in the newest code. Anyone know why this bug wasn't previously tracked
or closed?

> MD5 truncates leading 0s
> ------------------------
>
>                 Key: DATAFU-86
>                 URL: https://issues.apache.org/jira/browse/DATAFU-86
>             Project: DataFu
>          Issue Type: Bug
>            Reporter: Brian Johnson
>
> Because it's converted to a BigInteger
> return new BigInteger(1, md5er.digest(val.getBytes())).toString(16);
> any leading 0s are dropped and the resulting MD5 string will not match one generated
from another source.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message