Hi Charles, Q1. Do you think this is possible with the Crypto Digital Signature?
Signature notary = Signature.getInstance("SHA1withRSA"); notary.initSign(pkey); notary.update(strFieldsToHash.getBytes()); byte[] signed = notary.sign(); MessageDigest md = MessageDigest.getInstance("MD5"); md.update(signed); byte[] mdbytes = md.digest(signed); Q2. Crypto component puts the signed content into the header 'CamelDigitalSignature'. Is there a way to inform put the signed content into the body? Right now I have to do the following for getting header into body: <camel:setBody> <camle:simple> ${header.CamelDigitalSignature} </camel:simple> <camel:setBody> Regards, Arpit. -----Original Message----- From: Charles Moulliard [mailto:ch0...@gmail.com] Sent: Monday, October 07, 2013 12:09 PM To: users@camel.apache.org Subject: Re: MD5 digest calculation You can use the camel crypto component/dataformat for that purpose : http://camel.apache.org/crypto-digital-signatures.html On Mon, Oct 7, 2013 at 8:32 AM, Goyal, Arpit <arpit.go...@sap.com> wrote: > Hi, > > Is there a component to do MD5 digest calculation in camel? > > Regards, > Arpit. > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io