Package ch.bitagent.bitcoin.lib.helper
Class Ripemd160
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.helper.Ripemd160
-
public class Ripemd160 extends Object
Ripemd160 class.
Bitcoin cryptography library Copyright (c) Project Nayuki https://www.nayuki.io/page/bitcoin-cryptography-library https://github.com/nayuki/Bitcoin-Cryptography-Library
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]getHash(byte[] msg)Computes and returns a 20-byte (160-bit) hash of the specified binary message.
-
-
-
Method Detail
-
getHash
public static byte[] getHash(byte[] msg)
Computes and returns a 20-byte (160-bit) hash of the specified binary message. Each call will return a new byte array object instance.- Parameters:
msg- the message to compute the hash of- Returns:
- a 20-byte array representing the message's RIPEMD-160 hash
- Throws:
NullPointerException- if the message isnull
-
-