You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datafu.apache.org by "Brian Johnson (JIRA)" <ji...@apache.org> on 2015/01/06 20:09:34 UTC

[jira] [Closed] (DATAFU-86) MD5 truncates leading 0s

     [ https://issues.apache.org/jira/browse/DATAFU-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Johnson closed DATAFU-86.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0

> MD5 truncates leading 0s
> ------------------------
>
>                 Key: DATAFU-86
>                 URL: https://issues.apache.org/jira/browse/DATAFU-86
>             Project: DataFu
>          Issue Type: Bug
>            Reporter: Brian Johnson
>             Fix For: 1.3.0
>
>
> 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)