Consistent binary data from images in Swift
问题 For a small project, I'm making an iOS app which should do two things: take a picture take a hash from the picture data (and print it to the xcode console) Then, I want to export the picture to my laptop and confirm the hash. I tried exporting via AirDrop, Photos.app, email and iCloud (Photos.app compresses the photo and iCloud transforms it into an .png ). Problem is, I can't repodruce the hash. This means that the exported picture differs from the picture in the app. There are some