License
 

Pretty Good Privacy (PGP) is a computer program that provides cryptographic privacy and authentication. PGP is often used for signing, encrypting and decrypting e-mails to increase the security of e-mail communications. It was created by Philip Zimmermann in 1991.

There are several implementations for popular platforms such as Java and .net; however the availability of easy to implement PGP solutions for ColdFusions is limited. In particular, I found existing implementation rather difficult to use. Thus, I embarked on this project. To make a long story short, I ended up using the underlying work of the league of bouncy castle folks. The complete source code for those libraries can be downloaded from there.

You can follow the links above to get started with common PGP tasks such as creating keys/keyrings and encrypting/decrypting tasks. When encrypting or decrypting, you can select to monitor a directory for certain type of files. The small wizard will add a directory monitoring task for you in the Coldfusion Administrator.

- Bilal Soylu

 

The implementation of this is split up into two parts.

  • A jar library containing Java classes that interact with the bouncy castle libraries.
  • A ColdFusion component (PGPController.cfc) to interact with the jar library.

For deployment you will need the bouncy castle libraries, the BonCode libraries and the component. Please see the ReadMe file in the SourceInfo.zip file. It describes how to manually deploy the PGP solution.