Class HashFunctions


  • public class HashFunctions
    extends Object
    • Constructor Detail

      • HashFunctions

        public HashFunctions()
    • 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 hash
        salt - the salt to use
        pepper - the pepper to use
        Returns:
        a HEX Represenation of a SHA3
      • getSaltedHash

        @Nonnull
        public static String getSaltedHash​(String input,
                                           String salt)
        gets a salted hash of the given input
        Parameters:
        input - the input to hash
        salt - the salt to use
        Returns:
        a HEX Represenation of a SHA3