How do I encrypt a PGP message through java's crypto extension?
问题 Currently I'm using bouncy castle's libraries for the actual work and have found an example at sloanseaman.com that (after a little tweaking) works with v1.52. I've also got a working example from developer.com of how to use the JCE interface and can even drop the bcprov in it and use some of it's algorithms. public class CryptoUtil { private static final String ALGORITHM = "IDEA/PGP/NoPadding"; public static void encryptFile(File keyFile, File plainTextFile, File encryptedFile) throws