I'm already using SSLBlackbox successfully, but I need to be able to encrypt and decrypt arbitrary data using asymmetrical encryption. Both the PKIBlackbox and OpenPGPBlackbox can do that, right?

Currently, my code will be doing the encrypting and decrypting, but in the future it might be nice for a third party to be able to decrypt the contents of a file or a database field, assuming I provide them a key in some standard format.

Either OpenPGP- or PKI (PKCS#7)-based solution can be used to accomplish this task. Both standards support encryption for several different keys (or certificates in the case of PKI), allowing one to define the set of recipients who will be able to decrypt the data in future. PKI standard provides slightly higher flexibility than OpenPGP (namely, it allows to place custom attributes to the encrypted message). From the other hand, there are too few third-party PKI encryption tools available on the market, so the recipients might face decryption issues unless you provide them with the appropriate decryption software.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.