public class

Hash

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.encoding.Hash

Class Overview

Hash calculation routines. To calculate multiple hashes in a more efficient way, use HashCalculator instead.

Summary

Public Constructors
Hash()
Public Methods
static int calculateCRC32(byte[] data)
static byte[] calculateMD5(byte[] data)
static byte[] calculateSHA1(byte[] data)
static byte[] calculateSHA256(byte[] data)
static void checksumBlockFileUpdate(Checksum h, File f, long offset, long size)
static void checksumBlockFileUpdate(Checksum h, RandomAccessFile raf, long size)
static void checksumBlockFileUpdate(Checksum h, File f)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Hash ()

Public Methods

public static int calculateCRC32 (byte[] data)

public static byte[] calculateMD5 (byte[] data)

public static byte[] calculateSHA1 (byte[] data)

public static byte[] calculateSHA256 (byte[] data)

public static void checksumBlockFileUpdate (Checksum h, File f, long offset, long size)

Throws
IOException

public static void checksumBlockFileUpdate (Checksum h, RandomAccessFile raf, long size)

Throws
IOException

public static void checksumBlockFileUpdate (Checksum h, File f)

Throws
IOException