docs: private boolean digestMatches(byte[] digest, String providedDigest) {
          return providedDigest.equalsIgnoreCase(Hex.encodeHexString(digest)) || providedDigest.equalsIgnoreCase(new String(Base64.getEncoder().encode(digest)));
      }