datafu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Hayes (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DATAFU-86) MD5 truncates leading 0s
Date Tue, 06 Jan 2015 19:11:35 GMT

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

Matthew Hayes commented on DATAFU-86:
-------------------------------------

This is a duplicate of DATAFU-46, which was previously fixed.  This hasn't been released yet
which is why you are still observing the problem.  Thanks for reporting it though!

> 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)

Mime
View raw message