文件名称:Java.III.DataSigning
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- n**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Java allows configuring multiple JCE providers, and looks up requested algorithms by name. This example shows generating RSA signatures with variable digests, and verification of the signed text by the means of RSA public key.
An explanation of the example:
1. Class DataSigning reads the specified file, and creates its digest
2. A unique RSA key pair is created, and the public key is stored with ".key" extension
3. The digest of the text file is signed with the private key
4. During verification, the previously stored public key is retrieved from the file
5. The signature is read from the file
6. The signature is checked, using the public key and newly computed digest of the text
An explanation of the example:
1. Class DataSigning reads the specified file, and creates its digest
2. A unique RSA key pair is created, and the public key is stored with ".key" extension
3. The digest of the text file is signed with the private key
4. During verification, the previously stored public key is retrieved from the file
5. The signature is read from the file
6. The signature is checked, using the public key and newly computed digest of the text
相关搜索: JCE
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DataSigning.java
execute.bat
InvalidSignatureException.java
Java.III.DataSigning.txt
execute.bat
InvalidSignatureException.java
Java.III.DataSigning.txt