You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datafu.apache.org by "William Watson (JIRA)" <ji...@apache.org> on 2015/01/06 20:02:34 UTC
[jira] [Comment Edited] (DATAFU-86) MD5 truncates leading 0s
[ 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)