assertTrue(fPriKey.length()!=0);
assertTrue(fPubKey.length()!=0);
String valToEncode = "some value";
Encoder e = EncoderUtils.createRSAEncoder(fPubKey);
Decoder d = DecoderUtils.createRSADecoder(fPriKey);
byte[] decodedValue = d.decode(e.encode(valToEncode.getBytes()));
assertEquals(valToEncode, new String(decodedValue));
} catch (IOException e) {
assertTrue(false);
}
}