Package anlavn.hash

Enum Class SHA.Types

java.lang.Object
java.lang.Enum<SHA.Types>
anlavn.hash.SHA.Types
All Implemented Interfaces:
Serializable, Comparable<SHA.Types>, Constable
Enclosing class:
SHA

public static enum SHA.Types extends Enum<SHA.Types>
The SHA (Secure Hash Algorithm) Family designates a family of 8 different hash functions.
  • Enum Constant Details

    • SHA_224

      public static final SHA.Types SHA_224
      Output: 224 bits ~ 56 characters
    • SHA_256

      public static final SHA.Types SHA_256
      Output: 256 bits ~ 64 characters
    • SHA_384

      public static final SHA.Types SHA_384
      Output: 384 bits ~ 96 characters
    • SHA_512

      public static final SHA.Types SHA_512
      Output: 512 bits ~ 128 characters
    • SHA3_224

      public static final SHA.Types SHA3_224
      Output: 224 bits ~ 56 characters
    • SHA3_256

      public static final SHA.Types SHA3_256
      Output: 256 bits ~ 64 characters
    • SHA3_384

      public static final SHA.Types SHA3_384
      Output: 384 bits ~ 96 characters
    • SHA3_512

      public static final SHA.Types SHA3_512
      Output: 512 bits ~ 128 characters
  • Method Details

    • values

      public static SHA.Types[] 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

      public static SHA.Types valueOf(String name)
      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 name
      NullPointerException - if the argument is null