JAVA(1.6)支持的的加密种类

本文通过代码展示了Java 1.6中内置的安全提供者支持的各种加密算法,包括MD5, SHA1, RSA, DSA等,并列举了如SunJCE, SunJSSE等提供者的具体实现,涵盖了对称加密、非对称加密、哈希算法以及密钥管理等多个方面。" 103233928,5636725,Bootstrap导航栏详解与实战,"['前端开发', 'Bootstrap', 'HTML', 'CSS']

常用的加密无非就是 MD5 和 SHA1 ,但是想输出看看JAVA到底实现了多少种加密算,运行以下代码一看,还不少

 

 

输出:

 

 -----------------SUN-----------------
SHA1PRNG
SHA1withDSA
NONEwithDSA
DSA
MD2
MD5
SHA
SHA-256
SHA-384
SHA-512
DSA
DSA
DSA
X.509
JKS
CaseExactJKS
JavaPolicy
JavaLoginConfig
PKIX
PKIX
LDAP
Collection
com.sun.security.IndexedCollection
-----------------SunRsaSign-----------------
RSA
RSA
MD2withRSA
MD5withRSA
SHA1withRSA
SHA256withRSA
SHA384withRSA
SHA512withRSA
-----------------SunJSSE-----------------
RSA
RSA
MD2withRSA
MD5withRSA
SHA1withRSA
MD5andSHA1withRSA
SunX509
NewSunX509
SunX509
PKIX
SSL
SSLv3
TLS
TLSv1
Default
PKCS12
-----------------SunJCE-----------------
RSA
DES
DESede
DESedeWrap
PBEWithMD5AndDES
PBEWithMD5AndTripleDES
PBEWithSHA1AndRC2_40
PBEWithSHA1AndDESede
Blowfish
AES
AESWrap
RC2
ARCFOUR
DES
DESede
Blowfish
AES
RC2
ARCFOUR
HmacMD5
HmacSHA1
HmacSHA256
HmacSHA384
HmacSHA512
DiffieHellman
DiffieHellman
DiffieHellman
DiffieHellman
DES
DESede
PBE
PBEWithMD5AndDES
PBEWithMD5AndTripleDES
PBEWithSHA1AndDESede
PBEWithSHA1AndRC2_40
Blowfish
AES
RC2
OAEP
DiffieHellman
DES
DESede
PBEWithMD5AndDES
PBEWithMD5AndTripleDES
PBEWithSHA1AndDESede
PBEWithSHA1AndRC2_40
PBKDF2WithHmacSHA1
HmacMD5
HmacSHA1
HmacSHA256
HmacSHA384
HmacSHA512
HmacPBESHA1
SslMacMD5
SslMacSHA1
JCEKS
SunTlsPrf
SunTlsRsaPremasterSecret
SunTlsMasterSecret
SunTlsKeyMaterial
-----------------SunJGSS-----------------
1.2.840.113554.1.2.2
1.3.6.1.5.5.2
-----------------SunSASL-----------------
DIGEST-MD5
GSSAPI
EXTERNAL
PLAIN
CRAM-MD5
CRAM-MD5
GSSAPI
DIGEST-MD5
-----------------XMLDSig-----------------
http://www.w3.org/2000/09/xmldsig#enveloped-signature
http://www.w3.org/2002/06/xmldsig-filter2
http://www.w3.org/2001/10/xml-exc-c14n#WithComments
http://www.w3.org/2001/10/xml-exc-c14n#
http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments
DOM
http://www.w3.org/2000/09/xmldsig#base64
http://www.w3.org/TR/2001/REC-xml-c14n-20010315
http://www.w3.org/TR/1999/REC-xpath-19991116
http://www.w3.org/TR/1999/REC-xslt-19991116
DOM
-----------------SunPCSC-----------------
PC/SC
-----------------SunMSCAPI-----------------
Windows-PRNG
Windows-MY
Windows-ROOT
SHA1withRSA
SHA256withRSA
SHA384withRSA
SHA512withRSA
MD5withRSA
MD2withRSA
RSA
RSA
RSA/ECB/PKCS1Padding

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值