文件名称:11
介绍说明--下载内容均来自于网络,请自行研究使用
完成基于公钥证书的非对称密钥分配工作
说明:
(1)作为通讯的双方A和B,都有一个共同信赖的第三方CA,由CA为每个人生成公钥证书和相应的私钥并分发给A、B。
(2)A和B分别将自己的公钥证书提供给对方后,分别在本地验证对方公钥证书是否可靠(假定A、B已经获得CA的公钥),然后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;-Complete the asymmetric public key certificate-based key distribution work
Descr iption:
(1) as the communication of both A and B, have a common trusted third party CA, the CA generates a public key certificate for each person and the corresponding private key and distributed to A, B.
(2) A and B respectively to provide their own public key certificates to each other both in the local verify the reliability of each other s public key certificate (assuming A, B has received CA s public key), then A with B s public key encryption 1 the data X (integer, can be their own definition, such as 100) and send it to B, B with their own private key decrypted by the data X, and then consult a good function by F (eg F (X) = 2* X) calculated F (X), then encrypted using A s public key sent to A A locally with their own private key to decrypt obtained F (x), calculated with the local F (X) are compared, if the same descr iption Successful public-key distribution.
(3) A with B s public key on an
说明:
(1)作为通讯的双方A和B,都有一个共同信赖的第三方CA,由CA为每个人生成公钥证书和相应的私钥并分发给A、B。
(2)A和B分别将自己的公钥证书提供给对方后,分别在本地验证对方公钥证书是否可靠(假定A、B已经获得CA的公钥),然后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;-Complete the asymmetric public key certificate-based key distribution work
Descr iption:
(1) as the communication of both A and B, have a common trusted third party CA, the CA generates a public key certificate for each person and the corresponding private key and distributed to A, B.
(2) A and B respectively to provide their own public key certificates to each other both in the local verify the reliability of each other s public key certificate (assuming A, B has received CA s public key), then A with B s public key encryption 1 the data X (integer, can be their own definition, such as 100) and send it to B, B with their own private key decrypted by the data X, and then consult a good function by F (eg F (X) = 2* X) calculated F (X), then encrypted using A s public key sent to A A locally with their own private key to decrypt obtained F (x), calculated with the local F (X) are compared, if the same descr iption Successful public-key distribution.
(3) A with B s public key on an
(系统自动生成,下载前可以参看下载内容)
下载文件列表
公钥证书的非对称密钥分配\.project
........................\.classpath
........................\CAServer.java
........................\MyCertificate.java
........................\ObjectTransformUtil.java
........................\User.java
........................\ClientJFrame.java
........................\Secure.java
........................\RSAUtil.java
........................\test-1.txt
........................\encrypt_result.dat
........................\decrypt_result.html
........................\encrypt_prikeymsg_ca.txt
........................\encrypt_prikeymsg_client.txt
........................\prikeymsg_ca.txt
........................\prikeymsg_client.txt
........................\prikeymsg_ca_object.txt
........................\ClientJFrameB.java
........................\ImagePanel.java
........................\test_pig.png
........................\image.txt
........................\image1.txt
........................\TypeTransform.java
........................\TypeTransform.class
........................\Secure.class
........................\RSAUtil.class
........................\ObjectTransformUtil.class
........................\MyCertificate.class
........................\ImagePanel.class
........................\ClientJFrameB$3.class
........................\ClientJFrameB$2.class
........................\ClientJFrameB$User.class
........................\ClientJFrameB$1.class
........................\ClientJFrameB.class
........................\ClientJFrameB$User$UserCommunicating.class
........................\ClientJFrameB$Communicate.class
........................\ClientJFrame$3.class
........................\ClientJFrame$User$UserCommunicating.class
........................\ClientJFrame.class
........................\ClientJFrame$2.class
........................\ClientJFrame$1.class
........................\ClientJFrame$Communicate.class
........................\ClientJFrame$User.class
........................\CAServer.class
........................\CAServer$CAServerUtil.class
........................\CAServer$1.class
........................\CAServer$2.class
........................\CAServer$CAThread.class
公钥证书的非对称密钥分配
........................\.classpath
........................\CAServer.java
........................\MyCertificate.java
........................\ObjectTransformUtil.java
........................\User.java
........................\ClientJFrame.java
........................\Secure.java
........................\RSAUtil.java
........................\test-1.txt
........................\encrypt_result.dat
........................\decrypt_result.html
........................\encrypt_prikeymsg_ca.txt
........................\encrypt_prikeymsg_client.txt
........................\prikeymsg_ca.txt
........................\prikeymsg_client.txt
........................\prikeymsg_ca_object.txt
........................\ClientJFrameB.java
........................\ImagePanel.java
........................\test_pig.png
........................\image.txt
........................\image1.txt
........................\TypeTransform.java
........................\TypeTransform.class
........................\Secure.class
........................\RSAUtil.class
........................\ObjectTransformUtil.class
........................\MyCertificate.class
........................\ImagePanel.class
........................\ClientJFrameB$3.class
........................\ClientJFrameB$2.class
........................\ClientJFrameB$User.class
........................\ClientJFrameB$1.class
........................\ClientJFrameB.class
........................\ClientJFrameB$User$UserCommunicating.class
........................\ClientJFrameB$Communicate.class
........................\ClientJFrame$3.class
........................\ClientJFrame$User$UserCommunicating.class
........................\ClientJFrame.class
........................\ClientJFrame$2.class
........................\ClientJFrame$1.class
........................\ClientJFrame$Communicate.class
........................\ClientJFrame$User.class
........................\CAServer.class
........................\CAServer$CAServerUtil.class
........................\CAServer$1.class
........................\CAServer$2.class
........................\CAServer$CAThread.class
公钥证书的非对称密钥分配