public abstract class SHA256Util
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
Constructor and Description |
---|
SHA256Util() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bytesToHex(byte[] bytes)
Convert a byte array to a hex representation
|
static java.lang.String |
createSHA256Digest(byte[] source)
Creates a digest from the given byte stream as hex.
|
static boolean |
equals(byte[] source,
java.lang.String existingHash)
Returns true if the has of the passed stream is equal to the existing hash.
|
static byte[] |
hexStringToByteArray(java.lang.String s)
Converts a hex string to a byte array.
|
public static final java.lang.String cvsRev
public static java.lang.String bytesToHex(byte[] bytes)
bytes
- public static java.lang.String createSHA256Digest(byte[] source)
public static boolean equals(byte[] source, java.lang.String existingHash)
source
- the byte to be hashed and comparedexistingHash
- the existing hash to compare against.public static byte[] hexStringToByteArray(java.lang.String s)
s
- Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.