4 ms·
I've actually looked at the code Mega uses (mainly for downloading without a browser) and the key is not stored on the server but actually part of the URL fragm
by userbinator 11y ago
I've actually looked at the code Mega uses (mainly for downloading without a browser) and the key is not stored on the server but actually part of the URL fragment, which isn't necessary to be sent to Mega, and decryption happens on the client:
https://gist.github.com/KenMacD/6431823 https://gist.github.com/KenMacD/6431823
http://julien-marchand.fr/blog/using-the-mega-api-how-to-download-a-public-file-or-a-file-you-know-the-key-without-logging-in/ http://julien-marchand.fr/blog/using-the-mega-api-how-to-dow...
I haven't looked at the upload side but that's an interesting datapoint. Not sure how secure AES128-CTR is.
- pfg 11y agoThat would avoid transmitting the key to the server, but in the scenario I mentioned, it would still be accessible to the backdoor via window.location.hash.
- colejohnson66 11y agoI meant the key to decrypt the user's own folder. That has to be stored on the server so you can access your files from anywhere. But yes, share files/folders keep the key in the window hash, but that's not what I was talking about.