cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA API's for PGP Encryption/Decryption

Former Member
0 Kudos

Has anyone had any experience with implementing PGP encryption through some of the open source PGP encryption JAVA libaries out there? I'm wanting to do a user module within the file adapter to do the conversion rather than use the PGP command line interface.

Current versions I'm looking at are the ones found at http://www.cryptix.org and http://www.bouncycastle.org.

Has anyone had any success (and preferably want to share some source code)? Can anyone recommend and/or validate any of these or other PGP JAVA libraries?

Thanks,

Matt

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Matt,

we used:

org.bouncycastle.openpgp

in a mail adapter module to implement PGP encryption

and it is working fine:)

(outlook can open those mails easily)

>>>(and preferably want to share some source code)?

but sorry can't do that

but on:

http://www.bouncycastle.org/documentation.html

you got some examples

Regards,

michal

Former Member
0 Kudos

No problem. Although you can't share source code, did you do it via the user module interface or via a java mapping?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

user module added to the mail adapter of course

now we just specify in the mail adapter parameters path to the public key and the mail gets encrypted inside

the adapter:)

Regards,

michal

Former Member
0 Kudos

Michal you say

"now we just specify in the mail adapter parameters path to the public key and the mail gets encrypted inside the adapter:) "

so on the Receiver Mail adapter, you call the module to fetch the PUBLIC key from the Key store and once you get the keys you are doing the encryption inside the Mail adapter and send it to the target business?

This is what you say Michal.

Thanks

Former Member
0 Kudos

Legends would some one answer me please

Former Member
0 Kudos

Can you point to a good explanation of what needs to be done? I have wrapped some code around the Bouncy Castle library to encrypt a String to a String. But I am new to SAP. Need help understanding how to integrate that for use with File/FTP adapter.

Thanks,

-Andy

Former Member
0 Kudos

Hi Michal,

Cant we do a wrapper class as Andy mentioned...

use java mapping to take a plain string and return an encrypted string.

This would save us from writing the adapter module - please correct me if I am wrong.

reg

Former Member
0 Kudos

Yes it is possible to encrypt a particular string in mapping also (using UDF with wrapper classes).

But import all required Jar's in Import Archive.

Thanks

farooq

Answers (0)