on 03-15-2021 9:53 PM
Hi all,
I have an XML file, taken from SFTP, where each field is PGP Encrypted, like this:
<Employee>
<name>-----BEGIN PGP MESSAGE----- sfhefoadicnhoiasfhoaihcfaoi-----END PGP MESSAGE-----</name> <surname>-----BEGIN PGP MESSAGE----- sfhefoadicnhoiasfhoaihcfaoi-----END PGP MESSAGE-----</surname>
</Employee>
and I want to PGP Decrypt each field in order to have:
<Employee>
<name>Mario</name>
<surname>Rossi</surname>
</Employee>
Have you any suggestions? Is it possible to do with standard components or I have to use Groovy?
Thanks in advance.
Hello Giacomo,
A standard PGP decryptor step applies decryption to the entire message payload (message-level decryption) rather than to specific parts of it (such as field-level decryption). If for the sender, the requirement to encrypt only specific field values in a file is a must and it cannot be replaced with the entire file content encryption (the latter option would have enabled usage of standard PGP decryption functionality in CPI), then I would propose considering either of the following options in CPI (both will require custom development):
Regards,
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I haven't come across the exact ready-to-use Groovy script or UDF function that would satisfy your particular requirement, but you might have a look into some other examples to get the gist and adapt them to your needs - for example, one of recipes available here can be looked at.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.