News for hackers. Stuff that matters.
Re:Ask HN: What are you using to replace shared iCloud Photo... by stuaxo on Thursday August 12, 2021 @05:40AM (#28154112)
An s3 bucket will give you back an ETAG header for each file it holds, which is more or less the MD5 of a set of chunks that make up the file.

You can use that to identify files.

Re:Ask HN: What are you using to replace shared iCloud Photo... by orf on Thursday August 12, 2021 @02:03PM (#28159450)
Only if the file is not uploaded via a multipart upload, which all SDKs do for any files larger than a megabyte.

If the object is encrypted with KMS, which almost everything is, then the hash is the encrypted contents and not the original contents.