Class SHA256

java.lang.Object
com.ubs.backend.classes.SHA256

public class SHA256 extends Object
Class to get the SHA256 Hash of a String.
Since:
17.07.2021
Author:
Marc
  • Constructor Details

    • SHA256

      public SHA256()
  • Method Details

    • getSHA

      public static byte[] getSHA(String string)
      Function to get the bytes of a String
      Parameters:
      string - the String which will be used.
      Returns:
      the bytes of the String
      Since:
      17.07.2021
    • getHexString

      public static String getHexString(byte[] hash)
      Function to the Hex String of a number
      Parameters:
      hash - the Hash being used
      Returns:
      the Hex String
      Since:
      17.07.2021
    • getHexStringInstant

      public static String getHexStringInstant(String string)
      Function to get the SHA256 Hash of a string.
      Parameters:
      string - the String being hashed.
      Returns:
      the SHA256 Hash of the String
      Since:
      17.07.2021