文件名称:java_DigitalSign
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 23kb
- 下载次数:
- 0次
- 提 供 者:
- 张*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实用数字签名的步骤
(1)发送方使用MD5算法对原始信息进行计算,获得一个固定长度的信息摘要
(2)发送方用自己的私钥加密生成的信息生成发送方的数字签名,发送方把这个数字签名作为发送信息的附件和明文信息,一同用接收方的公钥进行加密,将加密后的密文一同发送给接收方;
(3)接收方首先把接收到的密文用自己的私钥解密,得到明文信息和数字签名,再用发送方的公钥对数字签名进行解密,然后使用相同的单向散列算法来计算解密得到的明文信息,得到信息摘要;对比计算出来的信息摘要和发送方发送过来的信息摘要是否一致-Practical steps to a digital signature
(1) sender MD5 algorithm used to calculate the original information, access to a fixed length message digest
(2) use their own sender s private key to generate encrypted information generated by the sender s digital signature, the sender of the digital signature as an annex to send a message and express information, together with the recipient s public key for encryption, will be encrypted ciphertext sent to the receiver together
(3) the recipient first received ciphertext with its own private key to decrypt received explicit information and digital signatures, and then the sender s public key to decrypt the digital signature, and then use the same one-way hash algorithm to calculate the explicit information to be decrypted, the message digest contrast calculated message digest and the sender sent the message digest are consistent
(1)发送方使用MD5算法对原始信息进行计算,获得一个固定长度的信息摘要
(2)发送方用自己的私钥加密生成的信息生成发送方的数字签名,发送方把这个数字签名作为发送信息的附件和明文信息,一同用接收方的公钥进行加密,将加密后的密文一同发送给接收方;
(3)接收方首先把接收到的密文用自己的私钥解密,得到明文信息和数字签名,再用发送方的公钥对数字签名进行解密,然后使用相同的单向散列算法来计算解密得到的明文信息,得到信息摘要;对比计算出来的信息摘要和发送方发送过来的信息摘要是否一致-Practical steps to a digital signature
(1) sender MD5 algorithm used to calculate the original information, access to a fixed length message digest
(2) use their own sender s private key to generate encrypted information generated by the sender s digital signature, the sender of the digital signature as an annex to send a message and express information, together with the recipient s public key for encryption, will be encrypted ciphertext sent to the receiver together
(3) the recipient first received ciphertext with its own private key to decrypt received explicit information and digital signatures, and then the sender s public key to decrypt the digital signature, and then use the same one-way hash algorithm to calculate the explicit information to be decrypted, the message digest contrast calculated message digest and the sender sent the message digest are consistent
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test3
.....\.classpath
.....\.project
.....\A.txt
.....\B.txt
.....\bin
.....\...\Client$1.class
.....\...\Client.class
.....\...\MD5Encrypt.class
.....\...\RSAUtil.class
.....\...\Server$1.class
.....\...\Server.class
.....\DS
.....\..\Client.java
.....\..\MD5Encrypt.java
.....\..\RSAUtil.java
.....\..\Server.java
.....\test-1.txt
.....\.classpath
.....\.project
.....\A.txt
.....\B.txt
.....\bin
.....\...\Client$1.class
.....\...\Client.class
.....\...\MD5Encrypt.class
.....\...\RSAUtil.class
.....\...\Server$1.class
.....\...\Server.class
.....\DS
.....\..\Client.java
.....\..\MD5Encrypt.java
.....\..\RSAUtil.java
.....\..\Server.java
.....\test-1.txt