首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 快速 RSA 密码体制实现使用中国剩余定理

快速 RSA 密码体制实现使用中国剩余定理

资 源 简 介

/ / RSATestFast: 测试快速 RSA 实现 导入 java.math.* ; / / 为 BigInteger 导入 java.util.* ; / / 为随机 公共类 RSATestFast { 公共静态 void elapsedTime (长开始时间) { 长时间停止时间 = System.currentTimeMillis() ; 双 elapsedTime = ((双)(stopTime-startTime)) / 1000.0 ; System.out.println ("已用时间:"+ elapsedTime +"秒") ; } 公共静态 void main (字符串 [] args) { 随机 rnd = 新 Random() ; BigInteger m、 m1、 m2、 m3、 c、 s,s1 ; RSAPrivateKeyFast 爱丽丝 = 新 RSAPrivateKeyFast (1024,rnd,"爱丽丝") ; RSAPrivateKeyFast bob = 新 RSAPrivateKeyFast (1024,rnd,"鲍勃 ") ; m = 新 BigInteger ( "1234567890987654321012345678909876543210"+ "1234567890987654321012345678909876543210"+ "1234567890987654321012345678909876543210"+ "1234567890987654321012345678909876543210"+ "1234567890987654321012345678909876543210"+ "1234567890987654321012345678909876543210") ; System.out.println

文 件 列 表

bcpg-jdk15on-149
releasenotes.html
LICENSE.html
docs
CONTRIBUTORS.html
index.html
specifications.html
src.zip
VIP VIP
0.189838s