public final class HashUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToHex(byte[] hashBytes)
Converts a byte array into a hex string.
|
static String |
checksum(byte[] data)
Produces a checksum for the given input data.
|
static MessageDigest |
getMessageDigest()
Provides a
MessageDigest object for calculating checksums. |
static String |
rawChecksum(byte[] data)
Produces a raw checksum for the given input data.
|
public static String checksum(byte[] data)
data - public static String bytesToHex(byte[] hashBytes)
hashBytes - The byte array to convert.public static String rawChecksum(byte[] data)
data - public static MessageDigest getMessageDigest()
MessageDigest object for calculating checksums.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.