Package org.filestack.internal
Class Hash
java.lang.Object
org.filestack.internal.Hash
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringhmacSha256(byte[] key, byte[] message) Computes hash using HmacSHA256 algorithm.static byte[]md5(byte[] bytes) Computes MD5 hash out of provided array of bytes.static byte[]md5(byte[] bytes, int offset, int length) Computes MD5 hash out of provided array of bytes.
-
Method Details
-
md5
@Nullable public static byte[] md5(byte[] bytes) Computes MD5 hash out of provided array of bytes.- Parameters:
bytes- - the array of bytes
-
md5
@Nullable public static byte[] md5(byte[] bytes, int offset, int length) Computes MD5 hash out of provided array of bytes.- Parameters:
bytes- - the array of bytesoffset- - the offset to start from in the array of bytes.length- - the number of bytes to use, starting at offset.
-
hmacSha256
Computes hash using HmacSHA256 algorithm.- Parameters:
key- - key used to sign the messagemessage- - message to hash
-