Interface HashingAlgorithm
public interface HashingAlgorithm
Hashing Algorithm. A common interface to interact with any system provided algorithms.
- Author:
- Paulo Lopes
-
Method Summary
Modifier and TypeMethodDescriptionhash(HashString hashString, String password) Algorithm specific implementation.id()return the symbolic name for the algorithmdefault booleanShould the encoded string use the default separator to split fields.params()return the list of param names required for this algorithm.
-
Method Details
-
id
-
params
-
hash
Algorithm specific implementation.- Returns:
- the hashed digest.
-
needsSeparator
default boolean needsSeparator()Should the encoded string use the default separator to split fields.- Returns:
- true by default.
-