public interface Hash extends ByteSource
Md2Hash,
Md5Hash,
Sha1Hash,
Sha256Hash,
Sha384Hash,
Sha512HashByteSource.Util| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAlgorithmName() |
int |
getIterations()
Returns the number of hash iterations used to compute the hash.
|
ByteSource |
getSalt()
Returns a salt used to compute the hash or
null if no salt was used. |
getBytes, isEmpty, toBase64, toHexString getAlgorithmName()
SHA-256, MD5, etc.ByteSource getSalt()
null if no salt was used.null if no salt was used.int getIterations()
Copyright © 2015-2017. All Rights Reserved.