Class EventHash
java.lang.Object
org.springframework.modulith.events.neo4j.EventHash
Computes SHA-256 and MD5 hashes.
- Since:
- 2.1
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptioncandidates(byte[] bytes) Returns all hashes for the given byte array.(package private) static Stringmd5(byte[] bytes) Returns the hex-encoded MD5 digest of the given bytes.(package private) static Stringsha256(byte[] bytes) Returns the hex-encoded SHA-256 digest of the given bytes.
-
Method Details
-
sha256
Returns the hex-encoded SHA-256 digest of the given bytes.- Parameters:
bytes- must not be null.
-
md5
Returns the hex-encoded MD5 digest of the given bytes.- Parameters:
bytes- must not be null.
-
candidates
Returns all hashes for the given byte array.- Parameters:
bytes- must not be null.
-