本帖最后由 blackbeer 于 2015-6-29 09:34 编辑
先附上代码 代码不完整需要添加 但是不知怎么添 求大神助我!在此感谢
{:1_931:}
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.math.BigInteger;
public class EncyptDecypt
{
private long pubKey;
private long priKey;
public EncyptDecypt()
{
pubKey = RSA.getPublicKey();
priKey = RSA.getPrivatekey();
}
public void encypt(String fileName)
{
FileInputStream input = null;
FileOutputStream output = null;
try
{
input = new FileInputStream(fileName);