code: private static String stringMessageDigest(String source, String algorithm) {
          return getMessageDigest(source.getBytes(), algorithm);
      }
docs: Get the sha1 value of a string
  
  @param source string
  @return the sha value