public final class HashHelper extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
hash(HashType type,
String text)
hash 计算
|
static <T> T |
hash(HashType type,
String text,
IHashResultHandler<T> hashResultHandler)
hash 计算
|
static <T> T |
hash(HashType type,
String text,
String salt,
IHashResultHandler<T> hashResultHandler)
hash 计算
|
static <T> T |
hash(HashType type,
String text,
String salt,
int times,
IHashResultHandler<T> hashResultHandler)
hash 计算
|
static String |
hash(String text)
hash 计算
|
public static String hash(HashType type, String text)
type - 类型text - 文本public static <T> T hash(HashType type, String text, IHashResultHandler<T> hashResultHandler)
T - 反省type - 类型text - 文本hashResultHandler - 处理类public static <T> T hash(HashType type, String text, String salt, IHashResultHandler<T> hashResultHandler)
T - 反省type - 类型text - 文本salt - 盐hashResultHandler - 处理类public static <T> T hash(HashType type, String text, String salt, int times, IHashResultHandler<T> hashResultHandler)
T - 反省type - 类型text - 文本salt - 盐times - 次数hashResultHandler - 处理类Copyright © 2020. All rights reserved.