string密钥转PrivateKey和PublicKey
String转PrivateKey
public static PrivateKey toPrikey(String prikey) {
PrivateKey privateKey = null;
PKCS8EncodedKeySpec priPKCS8;
try {
//String prikey = toStr(path);
priPKCS8 = new PKCS8EncodedKeySpec(new BASE64Decoder().decodeBuffer(prikey));
KeyFactory keyf = KeyFactory.getInstance("RSA"<