OpenPGP from ColdFusion

One of our customers revealed that he had successfully used OpenPGP Library for Java in a ColdFusion project.

Here is a simple example:

<cfset pgp = createObject(“java”,”com.didisoft.pgp.PGPLib”).init()>

<cfset root = “c:\WWW\site\htdocs\example_PGP”>
<cfset private_key = root & “\private_key.skr”>
<cfset input = root & “\INPUT.txt”>
<cfset output = root & “\OUTPUT.pgp”>

<cfset pgp.signFile(input, private_key, “password123”, output, false)>

Fore more information on how to use Java classes from ColdFusion see