| 接口 | 说明 |
|---|---|
| Hashed | |
| Hasher | |
| StreamingHasher |
流式使用方法:
1) hasher.setSeed()
2)多次调用 hasher.update(byte[]) 动态更新数据
3) 调用 getHash() 获取计算后的Hash值
一次性Hash使用方法:
hasher.hash(byte[])
|
| 类 | 说明 |
|---|---|
| AbstractHasher | |
| HashCodeBuilder | |
| HasherChecksumAdapter | |
| HashingInputStream | |
| HashingOutputStream |
An
OutputStream that maintains a hash of the data written to it. |
| Hashs |
| 异常错误 | 说明 |
|---|---|
| UnsupportedHashAlgorithmException |
Copyright © 2022. All rights reserved.