古詩詞大全網 - 個性簽名 - 求RSA算法JAVA實現源代碼(帶界面的)

求RSA算法JAVA實現源代碼(帶界面的)

import javax.crypto.Cipher;

import java.security.*;

import java.security.spec.RSAPublicKeySpec;

import java.security.spec.RSAPrivateKeySpec;

import java.security.spec.InvalidKeySpecException;

import java.security.interfaces.RSAPrivateKey;

import java.security.interfaces.RSAPublicKey;

import java.io.*;

import java.math.BigInteger;

/**

* RSA 工具類。提供加密,解密,生成密鑰對等方法。

* 需要到/software_zone/2007/0925/523319.shtml

再參考這個吧

/t/20040427/20/3014655.html