Class HashUtils

java.lang.Object
blazing.crypto.HashUtils

public class HashUtils extends Object
  • Constructor Details

    • HashUtils

      public HashUtils()
  • Method Details

    • hash

      public static Result<String,NoSuchAlgorithmException> hash(String input)
      Hashes a String input using the SHA-256 algorithm.
      Parameters:
      input -
      Returns:
      A Result Object which contains a hashed String if successful and a NoSuchAlgorithmException if not.
    • hash

      public static Result<String,NoSuchAlgorithmException> hash(String algorithm, String input)
      Hashes a String input using Any supported algorithm.
      Parameters:
      algorithm -
      input -
      Returns:
      A Result Object which contains a hashed String if successful and a NoSuchAlgorithmException if not.