Class HashUtil


  • public class HashUtil
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getHash​(java.lang.String input, SignatureAlgorithm signatureAlgorithm)
      Calculates Hash Code, using Hashing Algorithm, defined by used Signature Algorithm.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHash

        public static java.lang.String getHash​(java.lang.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.