Question


Cognizant
IN
Last activity: 11 Sep 2017 5:32 EDT
Attachments are automatically password encrypted using any Code ? . is this possible in 6.1 sp2.
when ever sending attachments through mail..can we protect those attachments with encrypted password automatically ?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


Pegasystems
IN
PRPC 6.1 onwards has the Apache POI libraries included. This allows you to manipulate the MS office documents. You can also try encryption based on https://poi.apache.org/encryption.html. Note that Pega internally has never tried or tested this feature nor does it have an API to allow you to do so. If this is a requirement, you will have to write your own Java code in an activity or rule-utility-function to do so.
The version of Apache POI included in the product in 6.1 is 3.6. If you need a later version of the library, feel free to include it. Please refer to the following document on how to include 3rd party jars - https://community.pega.com/integration/how-to-make-external-jar-files-and-classes-available


Pegasystems Inc.
GB
Do you mean within a ZIP file or something ?


Cognizant
IN
Not Zip file. PDF or MS Word format documents.
Accepted Solution


Pegasystems
IN
PRPC 6.1 onwards has the Apache POI libraries included. This allows you to manipulate the MS office documents. You can also try encryption based on https://poi.apache.org/encryption.html. Note that Pega internally has never tried or tested this feature nor does it have an API to allow you to do so. If this is a requirement, you will have to write your own Java code in an activity or rule-utility-function to do so.
The version of Apache POI included in the product in 6.1 is 3.6. If you need a later version of the library, feel free to include it. Please refer to the following document on how to include 3rd party jars - https://community.pega.com/integration/how-to-make-external-jar-files-and-classes-available


Cognizant
IN
Thanks Rajiv Nistala..


Pegasystems Inc.
GB
Hi Sumanth: and just to add for PDFs in particular - there is a solution here that you maybe you could re-use : Re: PDF geneartion in PEGA ("Can we generate password protected pdf's in PEGA?")
It's for Pega7, but it might still work for 61SP2....(So long as the required 'PDFBox' libraries are available - which I believe they are,but haven't checked).
Thanks,
John


Cognizant
IN
Thanks johan..


Cognizant
IN
hello, For a similar requirement we have tried this solution .Unfortunately this is not working ,Encryption is happening via algorithm and it is not able to recognize the password until decryption happening via the same algorithm too .