public class HashUtils extends Object
| 构造器和说明 |
|---|
HashUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
doubleDigest(byte[] input)
|
static byte[] |
doubleDigest(byte[] input,
int offset,
int length)
Calculates the SHA-256 hash of the given byte range, and then hashes the resulting hash again.
|
static byte[] |
halfSha512(byte[] bytes) |
static byte[] |
quarterSha512(byte[] bytes) |
static byte[] |
SHA256_RIPEMD160(byte[] input) |
static byte[] |
sha512(byte[] bytes) |
public static byte[] doubleDigest(byte[] input)
input - inputpublic static byte[] doubleDigest(byte[] input,
int offset,
int length)
input - input value.offset - Offset.length - Length.public static byte[] halfSha512(byte[] bytes)
public static byte[] quarterSha512(byte[] bytes)
public static byte[] sha512(byte[] bytes)
public static byte[] SHA256_RIPEMD160(byte[] input)
Copyright © 2021. All rights reserved.