import fr.jayasoft.crypto.encoder.RSAEncoder;
public class RSATester {
public static void main(String[] args) {
KeyPair kp = RSAHelper.generateKeyPair();
RSAEncoder encoder = new RSAEncoder((RSAPublicKey)kp.getPublic());
RSADecoder decoder = new RSADecoder((RSAPrivateKey)kp.getPrivate());
byte[] src = "test".getBytes();
byte[] enc;
byte[] dec;
enc = encoder.encode(src);
dec = decoder.decode(enc);
System.out.println("done");
}