docs: private static MessageDigest getMessageDigest(String digestType) {
          MessageDigest messageDigest;
          try {
              messageDigest = MessageDigest.getInstance(digestType);
          } catch (NoSuchAlgorithmException e) {
              //should not happen
              throw new RuntimeException(e);
          }
          return messageDigest;
      }