CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 WEB源码 JSP源码/Java

文件名称: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 



























相关搜索: 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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com