Class HashUtil


  • public class HashUtil
    extends Object
    Hash Tool, that calculates Hash Code, using Hashing Algorithm, defined by the Signature Algorithm. I.e. Hashing Algorithm depends on the Signature Algorithm.
    Version:
    December 5, 2021
    Author:
    Yuriy Zabrovarnyy, Sergey Manoylo
    • Method Detail

      • getHash

        public static String getHash​(String input,
                                     SignatureAlgorithm signatureAlgorithm)
        Calculates Hash Code, using Hashing Algorithm, defined by used Signature Algorithm.
        Parameters:
        input - Input string, whose hash code is being calculated.
        signatureAlgorithm - Signature Algorithm.
        Returns:
        Hash Code, using algorithm, defined by used Signature Algorithm.