RSA

一、windows安装opensslphp

http://www.javashuo.com/article/p-mblbmyju-p.htmlhtml

二、从.pfx文件中提取私钥和证书java

https://www.php.cn/windows-416177.html算法

三、RSA加密与解密(Java实现)apache

http://www.javashuo.com/article/p-aptvmbxh-gw.htmlwindows

四、Base64编码与Java版本实现编码

https://www.jianshu.com/p/79ecc613ed21加密

五、RSA/RSA2 进行签名和验签spa

http://www.javashuo.com/article/p-oxhfhknz-bp.html.net

六、获取public.cer公钥

 1 import java.io.FileInputStream;
 2 import java.security.PublicKey;
 3 import java.security.cert.CertificateFactory;
 4 import java.security.cert.X509Certificate;
 5 
 6 import org.apache.commons.codec.binary.Base64;
 7 
 8 public class GetPublicKeyFromCer {
 9     
10     public static String getPublicKey() {
11         try {
12             CertificateFactory certFactory = CertificateFactory.getInstance("X.509");
13             X509Certificate cert = (X509Certificate) certFactory.generateCertificate(new FileInputStream("D:/test/public.cer")); // cer证书路径
14             PublicKey publicKey = cert.getPublicKey();
15             String pubKey = new String(Base64.encodeBase64(publicKey.getEncoded()));
16             return pubKey;
17         } catch (Exception e) {
18             e.printStackTrace();
19         }
20         
21         return null;
22     }
23 }

 七、AES、DES算法比较、区别

浅析DES与AES、RSA三种典型加密算法的比较

对加密的了解(DES/3DES/AES区别 )

加密算法(DES,AES,RSA,MD5,SHA1,Base64)比较和项目应用

八、MD五、SHA1区别

http://www.javashuo.com/article/p-aefrrivn-n.html

相关文章
相关标签/搜索