Class CryptoUtils

java.lang.Object
org.jppf.utils.CryptoUtils

public class CryptoUtils extends Object
Utility and helper methods to deal with cryptographic operations.
Author:
Laurent Cohen
  • Constructor Details

    • CryptoUtils

      public CryptoUtils()
  • Method Details

    • computeHash

      public static String computeHash(String source, String algorithm)
      Compute a hash string from a soruce string.
      Parameters:
      source - the string from which to compute a hash.
      algorithm - the name of the hash algorithm to use, e.g. "SHA-256".
      Returns:
      the computed hash, or null if any of the arguments is null or if the hash algorithm is unknown.