-
快速 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
- 2022-05-29 11:03:37下载
- 积分:1
-
数据结构算法及其应用
数据结构算法与应用-C语言描述阅读软件:Adobe Reader 7.0-data structure algorithms and application-C language description reading software : Adobe Reader 7.0
- 2023-01-23 12:40:05下载
- 积分:1
-
计算机图形学CDC类的应用
应用背景visualC++制作汉子的逐个显示动画,输出“你好!欢迎你来到山西大同大学!!!”关键技术CDC类的应用,visualC++编程
- 2022-05-22 15:59:12下载
- 积分:1
-
有限差分算法
有限差分算法,在linux下运行,可以提高对有限差分算法的理解,很简单,里面的参数文件设置很详细,都有很好的注释,希望能给新手带去知道
- 2022-08-14 19:12:43下载
- 积分:1
-
是《计算机常用数值计算算法与程序 C++版》一书的配套C++程序源代码文件,每个源程序文件的文件扩展名都使用.cpp形式。这些C++程序已经在微软公司Windo...
是《计算机常用数值计算算法与程序 C++版》一书的配套C++程序源代码文件,每个源程序文件的文件扩展名都使用.cpp形式。这些C++程序已经在微软公司Windows 平台下的Virsual C++ 6.0环境下通过-is "commonly used computer numerical algorithms and procedures C version," a book supporting the C source code file, the source files extensions are used. Cpp form. These procedures have been in C Microsoft Windows platform under the Virsual C 6.0 environment through
- 2022-05-27 01:10:34下载
- 积分:1
-
conver the data to absolute value
conver the data to absolute value
- 2022-02-12 17:47:28下载
- 积分:1
-
电脑鼠走迷宫算法 包含迷宫搜索和冲刺函数
电脑鼠走迷宫算法 包含迷宫搜索和冲刺函数-Computer Mouse Maze algorithm is a function that contains a maze search and sprint
- 2022-01-29 01:00:14下载
- 积分:1
-
FFT算法的C++代码
fft algorith and the c++ code
- 2023-08-05 23:55:03下载
- 积分:1
-
我的串的连接算法实现
我的串的连接算法实现-Series connectivity algorithm
- 2022-01-22 08:08:05下载
- 积分:1
-
求解圆周率pai的经典程序
求解圆周率pai的经典程序-solving pi pai classic procedures
- 2022-07-19 13:46:26下载
- 积分:1