That 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.
Re:Lavabit code open sourced
by colejohnson66 on Sunday May 01, 2016 @12:45AM
(#11604917)
I 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.
https://gist.github.com/KenMacD/6431823
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.