RSA算法 http://songshuhui.net/archives/84941 讲数学 http://blog.csdn.net/sunmenggmail/article/details/11994013 具体Java代码, 自己百度.