Skip to Content

Map, encrypt and send encrypted payload as mail attachment?

I have a payload generated via java mapping, which I am sending as mail attachment using Mail payload (mail package) in the same mapping. I would like to encrypt my payload before sending it as mail attachment.. What are my options?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Apr 29, 2011 at 09:26 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Krish Gopalan

      - There is a parameter called "Content Encoding" on the "General" tab of the communication channel. You can set it to "Base 64" for encoding the content of the mail.

      Or you can check the blog below and in the method that creates the attachment, add a Base64 encryption for example (there are many code examples and libraries over the web). This would encrypt only the attachment.

      /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping

  • Posted on Apr 30, 2011 at 05:25 AM

    Hi,

    >I would like to encrypt my payload before sending it as mail attachment

    In your same message mapping call the encryption service to encrypt the message.

    Cheers

    Agasthuri

    Add comment
    10|10000 characters needed characters exceeded

    • Thank you Lucas and Agasthuri.

      >

      > >We do have PGP aedaptive encryption module

      > Good one, I have Implemented 😊, Very east to use it..Just add the adapter module ( The Aedaptive modules )

      Yes, it is really very easy to use...

      > > but again the question is would we have ability to specify the Public key ring of our customer dynamically?

      > No, Once you create the Public key to the each customer ..Make use of the the same

      Meaning there is no dynamic option to encrypt for all customers using one comm. channel... My client is not keen on creating new Comm. Channels for each of the customer ... but I don't see any other way around it, unless we go with the Java mapping? Would that be the correct statement.