Package com.h2tcoin.takamakachain.utils
Class Hash
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.Hash
-
public class Hash extends Object
Deprecated.- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description Hash()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static byte[]
getInputStreamHash(String instanceName, InputStream inputStream)
Deprecated.returns the hash of theInputStream
, calculated using the specified instancestatic byte[]
hash(byte[] input)
Deprecated.returns a hash of the input valuestatic String
hashB64(String data)
Deprecated.returns a hash of the input valuestatic byte[]
hashBlake2b(byte[] input)
Deprecated.returns a hash of the input valuestatic String
hashHex(String data)
Deprecated.returns a hash of the input valuestatic byte[]
hashKeccak(byte[] input)
Deprecated.returns a hash of the input valuestatic byte[]
hashSha256(byte[] input)
Deprecated.returns a hash of the input valuestatic byte[]
hashSha3(byte[] input)
Deprecated.returns a hash of the input valuestatic byte[]
hashWith(byte[] input, String instanceName)
Deprecated.returns a hash of the input calculated using the specified instanceNamestatic void
initProvider()
Deprecated.static void
main(String[] args)
Deprecated.static String
toB64(byte[] input)
Deprecated.returns a base 64 representation of the input valuestatic String
toHex(byte[] input)
Deprecated.returns hexadecimal representation of the input value
-
-
-
Method Detail
-
hash
public static byte[] hash(byte[] input) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input value- Parameters:
input
-- Returns:
- Throws:
NoSuchAlgorithmException
-
hashSha256
public static byte[] hashSha256(byte[] input) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input value- Parameters:
input
-- Returns:
- Throws:
NoSuchAlgorithmException
-
hashSha3
public static byte[] hashSha3(byte[] input) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input value- Parameters:
input
-- Returns:
- Throws:
NoSuchAlgorithmException
-
hashBlake2b
public static byte[] hashBlake2b(byte[] input) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input value- Parameters:
input
-- Returns:
- Throws:
NoSuchAlgorithmException
-
hashKeccak
public static byte[] hashKeccak(byte[] input) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input value- Parameters:
input
-- Returns:
- Throws:
NoSuchAlgorithmException
-
hashB64
public static String hashB64(String data) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input value- Parameters:
data
-- Returns:
- Throws:
NoSuchAlgorithmException
-
hashHex
public static String hashHex(String data) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input value- Parameters:
data
-- Returns:
- Throws:
NoSuchAlgorithmException
-
hashWith
public static byte[] hashWith(byte[] input, String instanceName) throws NoSuchAlgorithmException
Deprecated.returns a hash of the input calculated using the specified instanceName- Parameters:
input
-instanceName
-- Returns:
- Throws:
NoSuchAlgorithmException
-
toHex
public static String toHex(byte[] input)
Deprecated.returns hexadecimal representation of the input value- Parameters:
input
-- Returns:
-
toB64
public static String toB64(byte[] input)
Deprecated.returns a base 64 representation of the input value- Parameters:
input
-- Returns:
-
initProvider
public static void initProvider()
Deprecated.
-
getInputStreamHash
public static byte[] getInputStreamHash(String instanceName, InputStream inputStream) throws IOException, NoSuchAlgorithmException, NoSuchProviderException
Deprecated.returns the hash of theInputStream
, calculated using the specified instance- Parameters:
instanceName
-inputStream
-- Returns:
- Throws:
IOException
NoSuchAlgorithmException
NoSuchProviderException
-
main
public static void main(String[] args) throws NoSuchAlgorithmException, IOException, NoSuchProviderException
Deprecated.- Parameters:
args
-- Throws:
NoSuchAlgorithmException
IOException
NoSuchProviderException
-
-