public void initialize(String oriFile, String newFile, String pkey) {
try {
FileInputStream fis=new FileInputStream(oriFile);
ObjectInputStream ois=new ObjectInputStream(new FileInputStream(pkey));
PublicKey pkey1=(PublicKey)ois.readObject();
/*oriFile 待加密文件
* newFile 加密后文件位置
* pkey 公钥位置
*
* 请问这里如何写代码....在网上也找了一些资料..可看的都不是太明白..希望有会的能写的详细一点..感激不尽..
*
* 还有解密的也麻烦帮忙写一下...真的是搞了好半天了才来问的
*
*
*/
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货