Package org.ek9lang.core
Class Digest
java.lang.Object
org.ek9lang.core.Digest
- All Implemented Interfaces:
Serializable
Wraps the SHA 256 digest and the resulting byte array into objects,
so we can deal with check objects rather than raw bytes.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if the contents of a file when a check sum is calculated are the same as that in the check sum file.static Digest.CheckSum
digest
(byte[] input) Checksum of bytes.static Digest.CheckSum
Open a file and create a checksum of the contents.static Digest.CheckSum
Get checksum of an input.static MessageDigest
Access a sha1 message digest.
-
Method Details
-
getSha256
Access a sha1 message digest. -
digest
Get checksum of an input. -
digest
Checksum of bytes. -
digest
Open a file and create a checksum of the contents. -
check
Checks if the contents of a file when a check sum is calculated are the same as that in the check sum file.
-