Add messageDigest method to HashingAlgorithm