@Test
public void testDecryptByPubKey() throws Exception {
RSAHelper helper = RSAHelper.getInstance();
byte[] destBuf = helper.encryptByPrivateKey(src.getBytes("utf-8"));
byte[] srcBuf = helper.decryptByPublicKey(destBuf);
Assert.assertEquals(src, new String(srcBuf, "utf-8"));
}
@Test
public void testDecryptByPriKey() throws Exception {