Encryption algorithms in Java 8
Just some code to get the list of cryptographic algorithms supported by JDK.
Source Code
package org.sandbox.security;
import java.security.Provider;
import java.security.Security;
public class JdkAlgorithms {
public static void main(String[] args) {
System.out.println("Java version: " + System.getProperty("java.version"));
System.out.println("-----");
System.out.println("PROVIDER NAME | SERVICE TYPE | ALGORITHM");
System.out.println("-----");
for (Provider provider : Security.getProviders()) {
for (Provider.Service service : provider.getServices()) {
System.out.println(
String.format("%s | %s | %s",
provider.getName(),
service.getType(),
service.getAlgorithm()));
}
}
}
}
Output
Java version: 1.8.0_92
-----
PROVIDER NAME | SERVICE TYPE | ALGORITHM
-----
SUN | SecureRandom | SHA1PRNG
SUN | Signature | SHA1withDSA
SUN | Signature | NONEwithDSA
SUN | Signature | SHA224withDSA
SUN | Signature | SHA256withDSA
SUN | KeyPairGenerator | DSA
SUN | MessageDigest | MD2
SUN | MessageDigest | MD5
SUN | MessageDigest | SHA
SUN | MessageDigest | SHA-224
SUN | MessageDigest | SHA-256
SUN | MessageDigest | SHA-384
SUN | MessageDigest | SHA-512
SUN | AlgorithmParameterGenerator | DSA
SUN | AlgorithmParameters | DSA
SUN | KeyFactory | DSA
SUN | CertificateFactory | X.509
SUN | KeyStore | JKS
SUN | KeyStore | CaseExactJKS
SUN | KeyStore | DKS
SUN | Policy | JavaPolicy
SUN | Configuration | JavaLoginConfig
SUN | CertPathBuilder | PKIX
SUN | CertPathValidator | PKIX
SUN | CertStore | LDAP
SUN | CertStore | Collection
SUN | CertStore | com.sun.security.IndexedCollection
SunRsaSign | KeyFactory | RSA
SunRsaSign | KeyPairGenerator | RSA
SunRsaSign | Signature | MD2withRSA
SunRsaSign | Signature | MD5withRSA
SunRsaSign | Signature | SHA1withRSA
SunRsaSign | Signature | SHA224withRSA
SunRsaSign | Signature | SHA256withRSA
SunRsaSign | Signature | SHA384withRSA
SunRsaSign | Signature | SHA512withRSA
SunEC | KeyFactory | EC
SunEC | AlgorithmParameters | EC
SunEC | Signature | NONEwithECDSA
SunEC | Signature | SHA1withECDSA
SunEC | Signature | SHA224withECDSA
SunEC | Signature | SHA256withECDSA
SunEC | Signature | SHA384withECDSA
SunEC | Signature | SHA512withECDSA
SunEC | KeyPairGenerator | EC
SunEC | KeyAgreement | ECDH
SunJSSE | KeyFactory | RSA
SunJSSE | KeyPairGenerator | RSA
SunJSSE | Signature | MD2withRSA
SunJSSE | Signature | MD5withRSA
SunJSSE | Signature | SHA1withRSA
SunJSSE | Signature | MD5andSHA1withRSA
SunJSSE | KeyManagerFactory | SunX509
SunJSSE | KeyManagerFactory | NewSunX509
SunJSSE | TrustManagerFactory | SunX509
SunJSSE | TrustManagerFactory | PKIX
SunJSSE | SSLContext | TLSv1
SunJSSE | SSLContext | TLSv1.1
SunJSSE | SSLContext | TLSv1.2
SunJSSE | SSLContext | TLS
SunJSSE | SSLContext | Default
SunJSSE | KeyStore | PKCS12
SunJCE | Cipher | RSA
SunJCE | Cipher | DES
SunJCE | Cipher | DESede
SunJCE | Cipher | DESedeWrap
SunJCE | Cipher | PBEWithMD5AndDES
SunJCE | Cipher | PBEWithMD5AndTripleDES
SunJCE | Cipher | PBEWithSHA1AndDESede
SunJCE | Cipher | PBEWithSHA1AndRC2_40
SunJCE | Cipher | PBEWithSHA1AndRC2_128
SunJCE | Cipher | PBEWithSHA1AndRC4_40
SunJCE | Cipher | PBEWithSHA1AndRC4_128
SunJCE | Cipher | PBEWithHmacSHA1AndAES_128
SunJCE | Cipher | PBEWithHmacSHA224AndAES_128
SunJCE | Cipher | PBEWithHmacSHA256AndAES_128
SunJCE | Cipher | PBEWithHmacSHA384AndAES_128
SunJCE | Cipher | PBEWithHmacSHA512AndAES_128
SunJCE | Cipher | PBEWithHmacSHA1AndAES_256
SunJCE | Cipher | PBEWithHmacSHA224AndAES_256
SunJCE | Cipher | PBEWithHmacSHA256AndAES_256
SunJCE | Cipher | PBEWithHmacSHA384AndAES_256
SunJCE | Cipher | PBEWithHmacSHA512AndAES_256
SunJCE | Cipher | Blowfish
SunJCE | Cipher | AES
SunJCE | Cipher | AES_128/ECB/NoPadding
SunJCE | Cipher | AES_128/CBC/NoPadding
SunJCE | Cipher | AES_128/OFB/NoPadding
SunJCE | Cipher | AES_128/CFB/NoPadding
SunJCE | Cipher | AES_128/GCM/NoPadding
SunJCE | Cipher | AES_192/ECB/NoPadding
SunJCE | Cipher | AES_192/CBC/NoPadding
SunJCE | Cipher | AES_192/OFB/NoPadding
SunJCE | Cipher | AES_192/CFB/NoPadding
SunJCE | Cipher | AES_192/GCM/NoPadding
SunJCE | Cipher | AES_256/ECB/NoPadding
SunJCE | Cipher | AES_256/CBC/NoPadding
SunJCE | Cipher | AES_256/OFB/NoPadding
SunJCE | Cipher | AES_256/CFB/NoPadding
SunJCE | Cipher | AES_256/GCM/NoPadding
SunJCE | Cipher | AESWrap
SunJCE | Cipher | AESWrap_128
SunJCE | Cipher | AESWrap_192
SunJCE | Cipher | AESWrap_256
SunJCE | Cipher | RC2
SunJCE | Cipher | ARCFOUR
SunJCE | KeyGenerator | DES
SunJCE | KeyGenerator | DESede
SunJCE | KeyGenerator | Blowfish
SunJCE | KeyGenerator | AES
SunJCE | KeyGenerator | RC2
SunJCE | KeyGenerator | ARCFOUR
SunJCE | KeyGenerator | HmacMD5
SunJCE | KeyGenerator | HmacSHA1
SunJCE | KeyGenerator | HmacSHA224
SunJCE | KeyGenerator | HmacSHA256
SunJCE | KeyGenerator | HmacSHA384
SunJCE | KeyGenerator | HmacSHA512
SunJCE | KeyPairGenerator | DiffieHellman
SunJCE | AlgorithmParameterGenerator | DiffieHellman
SunJCE | KeyAgreement | DiffieHellman
SunJCE | AlgorithmParameters | DiffieHellman
SunJCE | AlgorithmParameters | DES
SunJCE | AlgorithmParameters | DESede
SunJCE | AlgorithmParameters | PBE
SunJCE | AlgorithmParameters | PBEWithMD5AndDES
SunJCE | AlgorithmParameters | PBEWithMD5AndTripleDES
SunJCE | AlgorithmParameters | PBEWithSHA1AndDESede
SunJCE | AlgorithmParameters | PBEWithSHA1AndRC2_40
SunJCE | AlgorithmParameters | PBEWithSHA1AndRC2_128
SunJCE | AlgorithmParameters | PBEWithSHA1AndRC4_40
SunJCE | AlgorithmParameters | PBEWithSHA1AndRC4_128
SunJCE | AlgorithmParameters | PBES2
SunJCE | AlgorithmParameters | PBEWithHmacSHA1AndAES_128
SunJCE | AlgorithmParameters | PBEWithHmacSHA224AndAES_128
SunJCE | AlgorithmParameters | PBEWithHmacSHA256AndAES_128
SunJCE | AlgorithmParameters | PBEWithHmacSHA384AndAES_128
SunJCE | AlgorithmParameters | PBEWithHmacSHA512AndAES_128
SunJCE | AlgorithmParameters | PBEWithHmacSHA1AndAES_256
SunJCE | AlgorithmParameters | PBEWithHmacSHA224AndAES_256
SunJCE | AlgorithmParameters | PBEWithHmacSHA256AndAES_256
SunJCE | AlgorithmParameters | PBEWithHmacSHA384AndAES_256
SunJCE | AlgorithmParameters | PBEWithHmacSHA512AndAES_256
SunJCE | AlgorithmParameters | Blowfish
SunJCE | AlgorithmParameters | AES
SunJCE | AlgorithmParameters | GCM
SunJCE | AlgorithmParameters | RC2
SunJCE | AlgorithmParameters | OAEP
SunJCE | KeyFactory | DiffieHellman
SunJCE | SecretKeyFactory | DES
SunJCE | SecretKeyFactory | DESede
SunJCE | SecretKeyFactory | PBEWithMD5AndDES
SunJCE | SecretKeyFactory | PBEWithMD5AndTripleDES
SunJCE | SecretKeyFactory | PBEWithSHA1AndDESede
SunJCE | SecretKeyFactory | PBEWithSHA1AndRC2_40
SunJCE | SecretKeyFactory | PBEWithSHA1AndRC2_128
SunJCE | SecretKeyFactory | PBEWithSHA1AndRC4_40
SunJCE | SecretKeyFactory | PBEWithSHA1AndRC4_128
SunJCE | SecretKeyFactory | PBEWithHmacSHA1AndAES_128
SunJCE | SecretKeyFactory | PBEWithHmacSHA224AndAES_128
SunJCE | SecretKeyFactory | PBEWithHmacSHA256AndAES_128
SunJCE | SecretKeyFactory | PBEWithHmacSHA384AndAES_128
SunJCE | SecretKeyFactory | PBEWithHmacSHA512AndAES_128
SunJCE | SecretKeyFactory | PBEWithHmacSHA1AndAES_256
SunJCE | SecretKeyFactory | PBEWithHmacSHA224AndAES_256
SunJCE | SecretKeyFactory | PBEWithHmacSHA256AndAES_256
SunJCE | SecretKeyFactory | PBEWithHmacSHA384AndAES_256
SunJCE | SecretKeyFactory | PBEWithHmacSHA512AndAES_256
SunJCE | SecretKeyFactory | PBKDF2WithHmacSHA1
SunJCE | SecretKeyFactory | PBKDF2WithHmacSHA224
SunJCE | SecretKeyFactory | PBKDF2WithHmacSHA256
SunJCE | SecretKeyFactory | PBKDF2WithHmacSHA384
SunJCE | SecretKeyFactory | PBKDF2WithHmacSHA512
SunJCE | Mac | HmacMD5
SunJCE | Mac | HmacSHA1
SunJCE | Mac | HmacSHA224
SunJCE | Mac | HmacSHA256
SunJCE | Mac | HmacSHA384
SunJCE | Mac | HmacSHA512
SunJCE | Mac | HmacPBESHA1
SunJCE | Mac | PBEWithHmacSHA1
SunJCE | Mac | PBEWithHmacSHA224
SunJCE | Mac | PBEWithHmacSHA256
SunJCE | Mac | PBEWithHmacSHA384
SunJCE | Mac | PBEWithHmacSHA512
SunJCE | Mac | SslMacMD5
SunJCE | Mac | SslMacSHA1
SunJCE | KeyStore | JCEKS
SunJCE | KeyGenerator | SunTlsPrf
SunJCE | KeyGenerator | SunTls12Prf
SunJCE | KeyGenerator | SunTlsMasterSecret
SunJCE | KeyGenerator | SunTlsKeyMaterial
SunJCE | KeyGenerator | SunTlsRsaPremasterSecret
SunJGSS | GssApiMechanism | 1.2.840.113554.1.2.2
SunJGSS | GssApiMechanism | 1.3.6.1.5.5.2
SunSASL | SaslClientFactory | DIGEST-MD5
SunSASL | SaslClientFactory | NTLM
SunSASL | SaslClientFactory | GSSAPI
SunSASL | SaslClientFactory | EXTERNAL
SunSASL | SaslClientFactory | PLAIN
SunSASL | SaslClientFactory | CRAM-MD5
SunSASL | SaslServerFactory | CRAM-MD5
SunSASL | SaslServerFactory | GSSAPI
SunSASL | SaslServerFactory | DIGEST-MD5
SunSASL | SaslServerFactory | NTLM
XMLDSig | TransformService | http://www.w3.org/2006/12/xml-c14n11#WithComments
XMLDSig | TransformService | http://www.w3.org/2000/09/xmldsig#base64
XMLDSig | TransformService | http://www.w3.org/TR/1999/REC-xslt-19991116
XMLDSig | TransformService | http://www.w3.org/2001/10/xml-exc-c14n#
XMLDSig | TransformService | http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments
XMLDSig | TransformService | http://www.w3.org/2000/09/xmldsig#enveloped-signature
XMLDSig | TransformService | http://www.w3.org/2002/06/xmldsig-filter2
XMLDSig | XMLSignatureFactory | DOM
XMLDSig | TransformService | http://www.w3.org/TR/2001/REC-xml-c14n-20010315
XMLDSig | TransformService | http://www.w3.org/2001/10/xml-exc-c14n#WithComments
XMLDSig | TransformService | http://www.w3.org/2006/12/xml-c14n11
XMLDSig | TransformService | http://www.w3.org/TR/1999/REC-xpath-19991116
XMLDSig | KeyInfoFactory | DOM
SunPCSC | TerminalFactory | PC/SC
SunMSCAPI | SecureRandom | Windows-PRNG
SunMSCAPI | KeyStore | Windows-MY
SunMSCAPI | KeyStore | Windows-ROOT
SunMSCAPI | Signature | NONEwithRSA
SunMSCAPI | Signature | SHA1withRSA
SunMSCAPI | Signature | SHA256withRSA
SunMSCAPI | Signature | SHA384withRSA
SunMSCAPI | Signature | SHA512withRSA
SunMSCAPI | Signature | MD5withRSA
SunMSCAPI | Signature | MD2withRSA
SunMSCAPI | KeyPairGenerator | RSA
SunMSCAPI | Cipher | RSA
SunMSCAPI | Cipher | RSA/ECB/PKCS1Padding