views:

60

answers:

3

Hi,

Is there a windows program that allows users to encrypt a file so that it can be accessed via a Java API programmatically (i.e. to decrypt it in memory)?

I hope this makes sense.

I guess the question is twofold

(1) Is there a free Java API to access/decrypt encrypted files? (2) Is there a free program that allows you to encrypt files supported by the API?

Thanks.

Best wishes,

Christian

+1  A: 

There is a JCE provider for PGP available from cryptix. There are plenty of PGP programs available for windows and other platforms, including integration in email programs.

Peter Tillemans
+1  A: 

BouncyCastle is a good free library for cryptography in Java (and in C#). It's actively maintained (unlike Cryptix since 2005 apparently). It has a package for OpenPGP support, with which you should be able to do what you want. In addition, it's probably worth looking at its resources page, which lists a few tools that have been built on top of it (including related to OpenPGP).

Bruno
A: 

Jasypt is a Java package that simplifies encryption in Java. It works with either the built-in JCE provider or others (like BouncyCastle). There are basic command line apps included with it that you could use as a base for your own program.

AngerClown