public static void main(String[] args) throws Exception {
String file1 = "C:/Users/Administrator/Desktop/login/login.jpg"; //要加密的文件
String file2 = "C:/Users/Administrator/Desktop/login/login.encrypt"; //加密后的文件
String file3 = "C:/Users/Administrator/Desktop/login/login1.jpg"; //解密后的文件
saveRSAKey();
encryptFile(file1,file2);
decryptFile(file2,file3);
}