public class Fingerprint
extends java.lang.Object
| Constructor and Description |
|---|
Fingerprint(byte[] source)
Base constructor - use SHAKE-256 (160 bits).
|
Fingerprint(byte[] source,
boolean useSHA512t)
Deprecated.
use the SHAKE only version.
|
Fingerprint(byte[] source,
int bitLength)
Constructor with length - use SHAKE-256 (bitLength bits).
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
calculateFingerprint(byte[] input)
Return a byte array containing a calculated fingerprint for the passed in input data.
|
static byte[] |
calculateFingerprint(byte[] input,
int bitLength)
Return a byte array containing a calculated fingerprint for the passed in input data.
|
static byte[] |
calculateFingerprintSHA512_160(byte[] input)
Deprecated.
use the SHAKE based version.
|
boolean |
equals(java.lang.Object o) |
byte[] |
getFingerprint() |
int |
hashCode() |
java.lang.String |
toString() |
public Fingerprint(byte[] source)
source - original data to calculate the fingerprint from.public Fingerprint(byte[] source,
int bitLength)
source - original data to calculate the fingerprint from.@Deprecated
public Fingerprint(byte[] source,
boolean useSHA512t)
source - original data to calculate the fingerprint from.useSHA512t - use the old SHA512/160 calculation.public byte[] getFingerprint()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static byte[] calculateFingerprint(byte[] input)
input - data to base the fingerprint on.public static byte[] calculateFingerprint(byte[] input,
int bitLength)
input - data to base the fingerprint on.bitLength - bit length of finger print to be produced.@Deprecated public static byte[] calculateFingerprintSHA512_160(byte[] input)
input - data to base the fingerprint on.