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
All Methods Static Methods Concrete Methods 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.
-
-
-
Method Detail
-
getSHA3
@Nonnull public static String getSHA3(@Nonnull String input)
Gets the SHA3.- Parameters:
input- the input- Returns:
- the SHA3
-
getSaltedAndPepperdHash
public static String getSaltedAndPepperdHash(String input, String salt, String pepper)
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
-
-