Package de.kosmos_lab.utils
Class HashFunctions
java.lang.Object
de.kosmos_lab.utils.HashFunctions
public class HashFunctions extends Object
-
Constructor Summary
Constructors Constructor Description HashFunctions() -
Method Summary
Modifier and Type Method Description static StringgetSaltedAndPepperdHash(String input, String salt, String pepper)gets a salted and peppered hash of a given inputstatic StringgetSaltedHash(String input, String salt)gets a salted hash of the given inputstatic StringgetSHA3(String input)Gets the SHA3.
-
Constructor Details
-
HashFunctions
public HashFunctions()
-
-
Method Details
-
getSHA3
Gets the SHA3.- Parameters:
input- the input- Returns:
- the SHA3
-
getSaltedAndPepperdHash
gets a salted and peppered hash of a given input- Parameters:
input- the input to hashsalt- the salt to usepepper- the pepper to use- Returns:
- a HEX Represenation of a SHA3
-
getSaltedHash
gets a salted hash of the given input- Parameters:
input- the input to hashsalt- the salt to use- Returns:
- a HEX Represenation of a SHA3
-