Return-Path: X-Original-To: apmail-datafu-dev-archive@minotaur.apache.org Delivered-To: apmail-datafu-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7ED1C17362 for ; Tue, 6 Jan 2015 19:11:55 +0000 (UTC) Received: (qmail 87972 invoked by uid 500); 6 Jan 2015 19:11:56 -0000 Delivered-To: apmail-datafu-dev-archive@datafu.apache.org Received: (qmail 87934 invoked by uid 500); 6 Jan 2015 19:11:56 -0000 Mailing-List: contact dev-help@datafu.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@datafu.incubator.apache.org Delivered-To: mailing list dev@datafu.incubator.apache.org Received: (qmail 87923 invoked by uid 99); 6 Jan 2015 19:11:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 19:11:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 06 Jan 2015 19:11:55 +0000 Received: (qmail 86766 invoked by uid 99); 6 Jan 2015 19:11:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 19:11:35 +0000 Date: Tue, 6 Jan 2015 19:11:35 +0000 (UTC) From: "Matthew Hayes (JIRA)" To: dev@datafu.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DATAFU-86) MD5 truncates leading 0s MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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)