Package org.jppf.utils
Class CryptoUtils
java.lang.Object
org.jppf.utils.CryptoUtils
Utility and helper methods to deal with cryptographic operations.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomputeHash(String source, String algorithm) Compute a hash string from a soruce string.
-
Constructor Details
-
CryptoUtils
public CryptoUtils()
-
-
Method Details
-
computeHash
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.
-