文件名称:Lab1_3_1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:803.28kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
相关搜索: java encryption image
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lab1_3_1/.classpath
Lab1_3_1/.project
Lab1_3_1/bcprov-jdk14-123.jar
Lab1_3_1/receive.bmp
Lab1_3_1/src/CA$CAThread.class
Lab1_3_1/src/CA.class
Lab1_3_1/src/CA.java
Lab1_3_1/src/RSAUtil.class
Lab1_3_1/src/RSAUtil.java
Lab1_3_1/src/Test.class
Lab1_3_1/src/Test.java
Lab1_3_1/src/UserA$1.class
Lab1_3_1/src/UserA$RegisterThread.class
Lab1_3_1/src/UserA.class
Lab1_3_1/src/UserA.java
Lab1_3_1/src/UserB$1.class
Lab1_3_1/src/UserB$RegisterThread.class
Lab1_3_1/src/UserB$WaitThread.class
Lab1_3_1/src/UserB.class
Lab1_3_1/src/UserB.java
Lab1_3_1/test_pig.bmp
Lab1_3_1/说明.txt
Lab1_3_1/src
Lab1_3_1
Lab1_3_1/.project
Lab1_3_1/bcprov-jdk14-123.jar
Lab1_3_1/receive.bmp
Lab1_3_1/src/CA$CAThread.class
Lab1_3_1/src/CA.class
Lab1_3_1/src/CA.java
Lab1_3_1/src/RSAUtil.class
Lab1_3_1/src/RSAUtil.java
Lab1_3_1/src/Test.class
Lab1_3_1/src/Test.java
Lab1_3_1/src/UserA$1.class
Lab1_3_1/src/UserA$RegisterThread.class
Lab1_3_1/src/UserA.class
Lab1_3_1/src/UserA.java
Lab1_3_1/src/UserB$1.class
Lab1_3_1/src/UserB$RegisterThread.class
Lab1_3_1/src/UserB$WaitThread.class
Lab1_3_1/src/UserB.class
Lab1_3_1/src/UserB.java
Lab1_3_1/test_pig.bmp
Lab1_3_1/说明.txt
Lab1_3_1/src
Lab1_3_1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.