Looking for a groovy script to create a password protected CSV file to send as an attachment through the mail adapter in SAP CPI. As in, when the recipient tries to access the file, he has to type in a password for it to happen. There's no CPI shape to directly execute this so I was looking into writing a script for the same.
Asked
Active
Viewed 838 times
0

Sandra Rossi
- 11,934
- 5
- 22
- 48

Megan Winchester
- 11
- 2
-
1What kind of file ? How is it password protected ? What have you tried ? – ou_ryperd Mar 04 '20 at 08:16
-
1https://stackoverflow.com/help/how-to-ask – Bhanuchander Udhayakumar Mar 04 '20 at 08:35
-
1Csv does not support password protection because it's plait text file. You could use zip for example: https://stackoverflow.com/questions/10587561/password-protected-zip-file-in-java – daggett Mar 04 '20 at 12:47
-
Is there a javascript code or groovy script that i can refer for this? To create a zip file and then add a password to it – Megan Winchester Mar 05 '20 at 09:20
-
there's a standard element in CPI for creating a zip – dotchuZ Apr 11 '20 at 15:50