public class HashUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DIGEST_LENGTH |
Constructor and Description |
---|
HashUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
computeHash(byte[] data) |
static byte[] |
computeHash(net.minecraft.nbt.NBTTagCompound nbt) |
static java.lang.String |
convertHashToString(byte[] hash) |
static byte[] |
convertStringToHash(java.lang.String str) |
static java.security.DigestOutputStream |
createDigestStream() |
public static final int DIGEST_LENGTH
public static byte[] computeHash(byte[] data)
public static byte[] computeHash(net.minecraft.nbt.NBTTagCompound nbt)
public static java.security.DigestOutputStream createDigestStream()
public static java.lang.String convertHashToString(byte[] hash)
public static byte[] convertStringToHash(java.lang.String str)