| 构造器和说明 |
|---|
Hash() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected MessageDigest |
getDigest(String algorithmName)
Returns the JDK MessageDigest instance to use for executing the hash.
|
protected byte[] |
hash(byte[] bytes,
byte[] salt,
int hashIterations,
String algorithmName)
Hashes the specified byte array using the given
salt for the specified number of times. |
IHashResult |
hash(IHashContext context)
执行 hash
|
public IHashResult hash(IHashContext context)
IHashprotected MessageDigest getDigest(String algorithmName)
algorithmName - the algorithm to use for the hash, provided by subclasses.algorithm.protected byte[] hash(byte[] bytes,
byte[] salt,
int hashIterations,
String algorithmName)
salt for the specified number of times.bytes - the bytes to hashsalt - the salt to use for the initial hashhashIterations - the number of times the the bytes will be hashed (for attack resiliency).algorithmName - 算法Copyright © 2020. All rights reserved.