java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.security.InvalidKeyException...'0', '1', '2', '3', '4', '5', '6',
'7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
/**
* 随机生成密钥对...,密钥大小为96-1024位
keyPairGen.initialize(1024,new SecureRandom());
// 生成一个密钥对,保存在keyPair中
KeyPair keyPair...br.close();
return sb.toString();
} catch (IOException e) {
throw new Exception("公钥数据流读取错误...}
br.close();
return sb.toString();
} catch (IOException e) {
throw new Exception("私钥数据读取错误