public class Crypto
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Crypto.ECDSA |
| Constructor and Description |
|---|
Crypto() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
hash160(byte[] value)
First applies SHA-256 to the given byte array and then RIPEMD-160 to the intermediary hash.
|
static byte[] |
hash256(byte[] value)
Applies SHA-256 twice to the given byte array.
|
static byte[] |
ripemd160(byte[] value)
Applies the RIPEMD-160 hashing algorithm to the given byte array.
|
static byte[] |
sha256(byte[] value)
Applies the SHA-256 hashing algorithm to the given byte array.
|
public static byte[] sha256(byte[] value)
value - The bytes to hash.public static byte[] ripemd160(byte[] value)
value - The bytes to hash.public static byte[] hash160(byte[] value)
value - The bytes to hash.public static byte[] hash256(byte[] value)
value - The bytes to hash.