文件名称:Lab1_3_1
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 803kb
- 下载次数:
- 1次
- 提 供 者:
- 陈**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1)作为通讯的双方A和B,都有一个共同信赖的第三方CA,由CA为每个人生成公钥和相应的私钥并分发给A、B。
(2)A和B分别将自己的公钥提供给对方,然后A用B的公钥加密一个数据X(整型,可自己定义,比如100)并发送给B,B用自己的私钥解密后得到数据X,然后按协商好的函数F(比如F(X)=2*X)计算得到F(X),再利用A的公钥加密后发送给A;A在本地用自己的私钥解密后得到F(x),在同本地计算得到的F(X)进行对比,如果一致,说明公钥分配成功。
(3)A用B的公钥对一图象文件(test_pig.bmp)进行加密并发送给B,B收到后解密,对比原图象看是否一致,并记录整个加密/解密的所用时间T1;
-
1) as the communication between the parties A and B, have a common trusted third party CA, the CA public key generated for each person and the corresponding private key and distributed to A, B.
(2) A and B, respectively, their own public key available to the other, then A with B s public key to encrypt a data X (integer, can define their own, such as 100) and sent to B, B with their own private key to decrypt data obtained after X, then press the agreed-function F (eg F (X) = 2* X) calculated from F (X), then use a s public key encrypted and sent to a A locally with their own private key decrypted to get F (x), in the same local calculated F (X) for comparison, if the same, indicating the success of public-key distribution.
(3) A with B s public key for an image file (test_pig.bmp) is encrypted and sent to B, B to decrypt the receipt, compared to the original image to see if the same, and record the entire encryption/decryption time T1 used
(2)A和B分别将自己的公钥提供给对方,然后A用B的公钥加密一个数据X(整型,可自己定义,比如100)并发送给B,B用自己的私钥解密后得到数据X,然后按协商好的函数F(比如F(X)=2*X)计算得到F(X),再利用A的公钥加密后发送给A;A在本地用自己的私钥解密后得到F(x),在同本地计算得到的F(X)进行对比,如果一致,说明公钥分配成功。
(3)A用B的公钥对一图象文件(test_pig.bmp)进行加密并发送给B,B收到后解密,对比原图象看是否一致,并记录整个加密/解密的所用时间T1;
-
1) as the communication between the parties A and B, have a common trusted third party CA, the CA public key generated for each person and the corresponding private key and distributed to A, B.
(2) A and B, respectively, their own public key available to the other, then A with B s public key to encrypt a data X (integer, can define their own, such as 100) and sent to B, B with their own private key to decrypt data obtained after X, then press the agreed-function F (eg F (X) = 2* X) calculated from F (X), then use a s public key encrypted and sent to a A locally with their own private key decrypted to get F (x), in the same local calculated F (X) for comparison, if the same, indicating the success of public-key distribution.
(3) A with B s public key for an image file (test_pig.bmp) is encrypted and sent to B, B to decrypt the receipt, compared to the original image to see if the same, and record the entire encryption/decryption time T1 used
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lab1_3_1\.classpath
........\.project
........\bcprov-jdk14-123.jar
........\receive.bmp
........\src\CA$CAThread.class
........\...\CA.class
........\...\CA.java
........\...\RSAUtil.class
........\...\RSAUtil.java
........\...\Test.class
........\...\Test.java
........\...\UserA$1.class
........\...\UserA$RegisterThread.class
........\...\UserA.class
........\...\UserA.java
........\...\UserB$1.class
........\...\UserB$RegisterThread.class
........\...\UserB$WaitThread.class
........\...\UserB.class
........\...\UserB.java
........\test_pig.bmp
........\说明.txt
........\src
Lab1_3_1
........\.project
........\bcprov-jdk14-123.jar
........\receive.bmp
........\src\CA$CAThread.class
........\...\CA.class
........\...\CA.java
........\...\RSAUtil.class
........\...\RSAUtil.java
........\...\Test.class
........\...\Test.java
........\...\UserA$1.class
........\...\UserA$RegisterThread.class
........\...\UserA.class
........\...\UserA.java
........\...\UserB$1.class
........\...\UserB$RegisterThread.class
........\...\UserB$WaitThread.class
........\...\UserB.class
........\...\UserB.java
........\test_pig.bmp
........\说明.txt
........\src
Lab1_3_1