Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 294DA1725C for ; Mon, 10 Nov 2014 08:45:56 +0000 (UTC) Received: (qmail 79433 invoked by uid 500); 10 Nov 2014 08:45:55 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 79397 invoked by uid 500); 10 Nov 2014 08:45:55 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 79386 invoked by uid 99); 10 Nov 2014 08:45:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 08:45:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of support@ubikloadpack.com designates 178.33.251.80 as permitted sender) Received: from [178.33.251.80] (HELO mo69.mail-out.ovh.net) (178.33.251.80) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2014 08:45:28 +0000 Received: from mail627.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo69.mail-out.ovh.net (Postfix) with SMTP id BF937FFAAC4 for ; Mon, 10 Nov 2014 09:45:27 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 10 Nov 2014 10:45:27 +0200 Received: from mail-ie0-f175.google.com (support@ubikloadpack.com@209.85.223.175) by ns0.ovh.net with SMTP; 10 Nov 2014 10:45:26 +0200 Received: by mail-ie0-f175.google.com with SMTP id y20so8844950ier.34 for ; Mon, 10 Nov 2014 00:45:25 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.107.130.98 with SMTP id e95mr252170iod.87.1415609125324; Mon, 10 Nov 2014 00:45:25 -0800 (PST) Reply-To: support@ubikloadpack.com Received: by 10.42.102.131 with HTTP; Mon, 10 Nov 2014 00:45:25 -0800 (PST) In-Reply-To: <003d01cffc84$eb70e200$c252a600$@alibaba-inc.com> References: <004801cff83e$e087ca10$a1975e30$@alibaba-inc.com> <003d01cffc84$eb70e200$c252a600$@alibaba-inc.com> Date: Mon, 10 Nov 2014 09:45:25 +0100 Message-ID: Subject: Re: How to convert MD5 Hex format to 128 bits binary format? From: UBIK LOAD PACK Support To: JMeter Users List , =?GB2312?B?1cXOqrarKM6qtqsp?= Content-Type: multipart/alternative; boundary=001a113ec9860e51ce05077d2ff0 X-Ovh-Tracer-Id: 8873780117541754093 X-Ovh-Remote: 209.85.223.175 (mail-ie0-f175.google.com) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejhedriedtucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejhedriedtucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Virus-Checked: Checked by ClamAV on apache.org --001a113ec9860e51ce05077d2ff0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, To convert to MD5 as Hex : ${__BeanShell(org.apache.commons.codec.digest.DigestUtils.md5Hex("toto"),)} To convert to MD5 as Byte : ${__BeanShell(org.apache.commons.codec.digest.DigestUtils.md5("toto"),)} = =3D> I think this is what you need org.apache.commons.codec.digest.DigestUtils is already embeded within JMeter libraries so no need to add any jar. If it's not the answer, please clarify what you want to do. Regards Ubik Load Pack Support @ubikloadpack On Mon, Nov 10, 2014 at 2:23 AM, =E5=BC=A0=E4=B8=BA=E4=B8=9C(=E4=B8=BA=E4= =B8=9C) wrote: > Hi, > > I used the function ${__MD5()} to get the value of MD5 Hex format, > eg.d41d8cd98f00b204e9800998ecf8427e. > > And then, I=E2=80=99d like to convert it to 128 bits binary format(Raw da= ta), do > you know how to convert in Jmeter? > > As I know, Java used the class Java.security.MessageDigest to convert, > eg.MessageDigest.getInstance("MD5"); > > Maybe I missed something here. > > Thanks. > --Weidong > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > > --=20 Regards Ubik Load Pack Team Follow us on Twitter Cordialement L'=C3=A9quipe Ubik Load Pack Suivez-nous sur Twitter --001a113ec9860e51ce05077d2ff0--