Package com.backblaze.b2.util
Interface B2Md5
-
public interface B2Md5
-
-
Field Summary
Fields Modifier and Type Field Description static intHEX_MD5_SIZEstatic intMD5_SIZE
-
Method Summary
Static Methods Modifier and Type Method Description static byte[]binaryMd5OfBytes(byte[] bytes)Returns the binary digest of an array of bytesstatic byte[]binaryMd5OfBytes(byte[] bytes, int offset, int length)Returns the binary digest of a subsequence of an array of bytesstatic java.security.MessageDigestgetMd5MessageDigest()Returns an MD5 MessageDigest, which we expect to always be available.static java.lang.StringhexMd5OfBytes(byte[] bytes)Returns the hex digest of an array of bytes.static java.lang.StringhexMd5OfBytes(byte[] bytes, int offset, int length)Returns the hex digest of an array of bytes.
-
-
-
Field Detail
-
MD5_SIZE
static final int MD5_SIZE
- See Also:
- Constant Field Values
-
HEX_MD5_SIZE
static final int HEX_MD5_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMd5MessageDigest
static java.security.MessageDigest getMd5MessageDigest()
Returns an MD5 MessageDigest, which we expect to always be available.
-
binaryMd5OfBytes
static byte[] binaryMd5OfBytes(byte[] bytes)
Returns the binary digest of an array of bytes
-
binaryMd5OfBytes
static byte[] binaryMd5OfBytes(byte[] bytes, int offset, int length)Returns the binary digest of a subsequence of an array of bytes
-
hexMd5OfBytes
static java.lang.String hexMd5OfBytes(byte[] bytes)
Returns the hex digest of an array of bytes.
-
hexMd5OfBytes
static java.lang.String hexMd5OfBytes(byte[] bytes, int offset, int length)Returns the hex digest of an array of bytes.
-
-