I am successfully running RSA encryption/decryption in Java. This is how I generated the key.
ObjectOutputStream oos = new ObjectOutputStream(new Fil
You can have some form of XMLObjectOutputStream such that it outputs to XML instead of a proprietary binary format as in here.