This article is from the PGP FAQ, by Jeff Licquia firstname.lastname@example.org with numerous contributions by others.
Not yet. PGP 3.0, when it is released, is supposed to have support
for doing this. The PGP development team has even released a
preliminary API for the library; you can get it from:
The development team has expressed that this is not a definitive spec;
some of it is already out of date. It's good for getting the general
idea, though. Send comments concerning the spec to email@example.com.
In the meantime, you can write your programs to call the PGP program
when necessary. In C, for example, you would likely use the system()
or spawn...() functions to do this.