Show HN: We built an end-to-end encrypted alternative to Google Photos
1180 pointsOver the last year we've been building ente[1], a privacy-friendly, easy-to-use alternative to Google Photos. We've so far built Android[2][3], iOS[4], web[5] apps that encrypt your files and back them up in the background. You can access these across your devices, and share them with other ente users, end-to-end encrypted. You can also use our electron app[6] to maintain a local copy of your backed up files.
We've built a fault-tolerant data replication layer that replicates your data to two different storage providers in the EU. We will be providing additional replicas as an addon in the future.
We're relying on libsodium[7] for performing all cryptographic operations. Under the hood it uses XChaCha20 and XSalsa20 for encryption and Argon2 for key derivation.
We have documented our architecture[8] and open-sourced our clients[9].
We did a soft-launch on r/degoogle[10] sometime ago, and have since then ironed out issues and polished the product.
But we are far from where we want to be in terms of features (object and face detection, location clustering, image filters, ...) and user experience. We are hoping to use this post as an opportunity to collect feedback from fellow hackers.
If there's anything we can do better, please let us know, we would like to.
Best,
- Vishnu, Neeraj, Abhinav
[1]: https://ente.io
[2]: https://ente.io/apk
[3]: https://play.google.com/store/apps/details?id=io.ente.photos
[4]: https://apps.apple.com/in/app/ente-photos/id1542026904
[5]: https://web.ente.io
[6]: https://github.com/ente-io/bhari-frame/releases/latest
[7]: https://libsodium.gitbook.io
[8]: https://ente.io/architecture
[9]: https://github.com/ente-io
[10]: https://www.reddit.com/r/degoogle/comments/njatok/we_built_a...
Comments (405) 96 threads
Show all comments
Showing thread 18 of 96
Although I'm not a security expert, I have some worries about your security concept.
1. When the user wants to change the password, all photos&videos have to be reencrypted and uploaded which is absurd for most people because ~100GB of photo-storage is not an exception these days anymore.
2. When your database is leaked, it is very easy to compare with leaked passwords, putting users with reused passwords in great risk.
My proposal:
Masterkey: Random key encrypted with users password
Device A creates a masterkey and short-living rolling keys. Device B creates private/pub keys. If the user wants to add another device (B), he has to enter the current rolling key (from A). Device B sends its public key to Device A, encrypted with rolling key. Device A sends back masterkey encrypted with Device B public key.
en/decryption-key = masterkey decrypted with users password
With this method a database leak would be much less of a problem and a password change much less painful.
2. Hashes of passwords are not stored at our server, and email addresses are stored encrypted.
You can read more about our key-encryption flow here: https://ente.io/architecture#key-encryption
2. How is the email address encrypted? Why would an attacker need a stored hash? In a database leak situation it's possible to get to the data with only a valid email-password combination or am I missing something ? There is no information from a registered device necessary for the decryption right ?