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"),)} =>
I think this is what you needorg.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, 张为东(为东) <[email protected]> wrote: > Hi, > > I used the function ${__MD5()} to get the value of MD5 Hex format, > eg.d41d8cd98f00b204e9800998ecf8427e. > > And then, I’d like to convert it to 128 bits binary format(Raw data), 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: [email protected] > For additional commands, e-mail: [email protected] > > -- Regards Ubik Load Pack <http://ubikloadpack.com> Team Follow us on Twitter <http://twitter.com/ubikloadpack> Cordialement L'équipe Ubik Load Pack <http://ubikloadpack.com> Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
