Enum Class CryptoDetector.HashFormat
- All Implemented Interfaces:
Serializable, Comparable<CryptoDetector.HashFormat>, Constable
- Enclosing class:
CryptoDetector
Hash formats that can be detected.
可检测的哈希格式。
- Since:
- JDK 25, opencode-base-crypto V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArgon2 hash | Argon2 哈希BCrypt hash | BCrypt 哈希MD5 (32 hex chars) | MD5 (32 个十六进制字符)PBKDF2 hash | PBKDF2 哈希SCrypt hash | SCrypt 哈希SHA-1 (40 hex chars) | SHA-1 (40 个十六进制字符)SHA-256 (64 hex chars) | SHA-256 (64 个十六进制字符)SHA3-256 (64 hex chars) | SHA3-256 (64 个十六进制字符)SHA3-512 (128 hex chars) | SHA3-512 (128 个十六进制字符)SHA-384 (96 hex chars) | SHA-384 (96 个十六进制字符)SHA-512 (128 hex chars) | SHA-512 (128 个十六进制字符)Unknown format | 未知格式 -
Method Summary
Modifier and TypeMethodDescriptionstatic CryptoDetector.HashFormatReturns the enum constant of this class with the specified name.static CryptoDetector.HashFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MD5
MD5 (32 hex chars) | MD5 (32 个十六进制字符) -
SHA1
SHA-1 (40 hex chars) | SHA-1 (40 个十六进制字符) -
SHA256
SHA-256 (64 hex chars) | SHA-256 (64 个十六进制字符) -
SHA384
SHA-384 (96 hex chars) | SHA-384 (96 个十六进制字符) -
SHA512
SHA-512 (128 hex chars) | SHA-512 (128 个十六进制字符) -
SHA3_256
SHA3-256 (64 hex chars) | SHA3-256 (64 个十六进制字符) -
SHA3_512
SHA3-512 (128 hex chars) | SHA3-512 (128 个十六进制字符) -
BCRYPT
BCrypt hash | BCrypt 哈希 -
SCRYPT
SCrypt hash | SCrypt 哈希 -
ARGON2
Argon2 hash | Argon2 哈希 -
PBKDF2
PBKDF2 hash | PBKDF2 哈希 -
UNKNOWN
Unknown format | 未知格式
-
-
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
-