now using MessageDigest.isEqual for byte[] comparison