java.lang.Object
org.springframework.modulith.events.neo4j.EventHash

abstract class EventHash extends Object
Computes SHA-256 and MD5 hashes.
Since:
2.1
Author:
Oliver Drotbohm
  • Method Details

    • sha256

      static String sha256(byte[] bytes)
      Returns the hex-encoded SHA-256 digest of the given bytes.
      Parameters:
      bytes - must not be null.
    • md5

      static String md5(byte[] bytes)
      Returns the hex-encoded MD5 digest of the given bytes.
      Parameters:
      bytes - must not be null.
    • candidates

      static List<String> candidates(byte[] bytes)
      Returns all hashes for the given byte array.
      Parameters:
      bytes - must not be null.