Package org.miaixz.bus.core.lang
Enum Class Algorithm
- All Implemented Interfaces:
Serializable,Comparable<Algorithm>,Constable
签名算法类型
see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Signature
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum模式 加密算法模式,是用来描述加密算法(此处特指分组密码,不包括流密码)在加密时对明文分组的模式,它代表了不同的分组方式static enumCipher模式的枚举封装Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription默认的AES加密方式:AES/ECB/PKCS5PaddingARCFOURBlowfish默认的DES加密方式:DES/ECB/PKCS5Padding3DES算法,默认实现为:DESede/ECB/PKCS5PaddingRSA算法,此算法用了RSA/None/NoPaddingECDSAHmacMD5HmacSHA1HmacSHA256HmacSHA384HmacSHA512HmacSM3算法实现,需要BouncyCastle库支持MD2MD2/MD5带有RSA加密签名算法MD5MD5withRSA数字签名算法ECDSA签名算法RSA签名算法PBEWithMD5AndDESPBEWithSHA1AndDESedePBEWithSHA1AndRC2_40分组加密算法 RC2加密算法的执行速度是DES算法的两倍流加密算法,密钥长度可变RSA算法RSA算法,此算法用了默认补位方式为RSA/ECB/NoPaddingRSA算法,此算法用了默认补位方式为RSA/ECB/PKCS1PaddingRSA2算法SHA-1SHA1PRNG采用SHA-1签名算法的DSASHA1withECDSA使用SHA-*和RSA的签名算法SHA-256SHA256withECDSASHA256withRSASHA256WithRSA/PSSSHA-384SHA384withECDSASHA384withRSASHA384WithRSA/PSSSHA-512SHA512withECDSASHA512withRSASHA512WithRSA/PSS对称算法公钥密码算法主要用于数字签名及验证、消息认证码生成及验证、随机数生成等 其安全性及效率与SHA-256相当迭代分组密码算法SM4 CMAC模式实现,需要BouncyCastle库支持 -
Method Summary
-
Enum Constant Details
-
RSA
RSA算法 -
RSA2
RSA2算法 -
RSA_ECB_PKCS1
RSA算法,此算法用了默认补位方式为RSA/ECB/PKCS1Padding -
RSA_ECB
RSA算法,此算法用了默认补位方式为RSA/ECB/NoPadding -
EC
RSA算法,此算法用了RSA/None/NoPadding -
ECDSA
ECDSA -
NONEWITHRSA
RSA签名算法 -
MD2WITHRSA
MD2/MD5带有RSA加密签名算法 -
MD5withRSA
MD5withRSA -
SHA1WITHRSA
使用SHA-*和RSA的签名算法 -
SHA256WITHRSA
SHA256withRSA -
SHA384WITHRSA
SHA384withRSA -
SHA512WITHRSA
SHA512withRSA -
NONEWITHDSA
数字签名算法 -
SHA1WITHDSA
采用SHA-1签名算法的DSA -
NONEWITHECDSA
ECDSA签名算法 -
SHA1WITHECDSA
SHA1withECDSA -
SHA256WITHECDSA
SHA256withECDSA -
SHA384WITHECDSA
SHA384withECDSA -
SHA512WITHECDSA
SHA512withECDSA -
SHA256WITHRSA_PSS
SHA256WithRSA/PSS -
SHA384WITHRSA_PSS
SHA384WithRSA/PSS -
SHA512WITHRSA_PSS
SHA512WithRSA/PSS -
MD2
MD2 -
MD5
MD5 -
SHA1
SHA-1 -
SHA256
SHA-256 -
SHA384
SHA-384 -
SHA512
SHA-512 -
SHA1PRNG
SHA1PRNG -
HMACMD5
HmacMD5 -
HMACSHA1
HmacSHA1 -
HMACSHA256
HmacSHA256 -
HMACSHA384
HmacSHA384 -
HMACSHA512
HmacSHA512 -
HMACSM3
HmacSM3算法实现,需要BouncyCastle库支持 -
SM4CMAC
SM4 CMAC模式实现,需要BouncyCastle库支持 -
AES
默认的AES加密方式:AES/ECB/PKCS5Padding -
ARCFOUR
ARCFOUR -
BLOWFISH
Blowfish -
DES
默认的DES加密方式:DES/ECB/PKCS5Padding -
DESEDE
3DES算法,默认实现为:DESede/ECB/PKCS5Padding -
RC2
分组加密算法 RC2加密算法的执行速度是DES算法的两倍 -
RC4
流加密算法,密钥长度可变 -
PBEWITHMD5ANDDES
PBEWithMD5AndDES -
PBEWITHSHA1ANDDESEDE
PBEWithSHA1AndDESede -
PBEWITHSHA1ANDRC2_40
PBEWithSHA1AndRC2_40 -
SM1
对称算法 -
SM2
公钥密码算法 -
SM3
主要用于数字签名及验证、消息认证码生成及验证、随机数生成等 其安全性及效率与SHA-256相当 -
SM4
迭代分组密码算法
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
获取算法字符串表示,区分大小写- Returns:
- 算法字符串表示
-