Enum HashAlgorithm

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum HashAlgorithm
    extends Enum<HashAlgorithm>
                        

    An enum of supported hash algorithms. Each algorithm has one or more aliases associated to it, where the first alias is the definite name.

    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE

      No hash algorithm.

      UNKNOWN

      An unknown hash algorithm.

      MD5

      The Message-Digest 5 hash algorithm, see MD5.

      SHA1

      The Secure Hash Algorithm 1, see SHA-1.

      SHA256

      The Secure Hash Algorithm 2 with 256 bits, see SHA-256.

      SHA384

      The Secure Hash Algorithm 2 with 384 bits, see SHA-384.

      SHA512

      The Secure Hash Algorithm 2 with 512 bits, see SHA-512.

      SHA1GIT

      The Secure Hash Algorithm 1, but calculated on a Git "blob" object, see

      • https://git-scm.com/book/en/v2/Git-Internals-Git-Objects#_object_storage

      • https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html#git-compatibility