>> If the only needed functionalities were message encryption and
>> decryption - how difficult would it be to write a PGP client under Java?
>
> Just what we call a "simple matter of programming". The message formats
> are documented in RFC 2440.
J2SE already includes all necessary crypto algorithms and a powerful key
management system. Through Xerxes, you also got a Base64 coder. HTTP
support is already there, so it's just upon gluing all the components
together and interface with a usable GUI. However, as shown below, it's not
such a good idea.
>> It seems like most (all?) of the algorithms used are available in
>> Java. Yet I see no mention anywhere of a PGP client made in Java,
>> and I don't know why.
>
> Nobody has wanted one enough to bother writing one. Maybe you will be
> the first.
Actually, there is no need for such a thing. We already got a JNI interface
for GnuPG's library GPGme, whereas GnuPG is an multiplatform, stable and
long-term proven software. Which is also way faster than Java when
incoporating cryoptographic operations, and supports OS specific protection
mechanisms like page locking, memory protection, random number generation,
...
> Actually, I think hushmail.com uses PGP message formats in their web
> applet, but that's maybe short of a complete implementation.
Guess what they use...

Signature
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18
>> If the only needed functionalities were message encryption and
>> decryption - how difficult would it be to write a PGP client under Java?
[quoted text clipped - 8 lines]
> Nobody has wanted one enough to bother writing one. Maybe you will be
> the first.
For the crypto "backend", http://www.bouncycastle.org/
The user interface is up to you!
Will.