3 ms·
So would this be AES written in JS, or an extension?
by batgaijin 14y ago
So would this be AES written in JS, or an extension?
- robin_reala 14y agoAES JS libraries do exist: https://en.wikipedia.org/wiki/AES_implementations#Javascript https://en.wikipedia.org/wiki/AES_implementations#Javascript
- ars 14y agoBut there is no way to use that to download a file. Javascript has no way to output data that is then saved to disk. It will have to be a browser extension or an offline tool (download the encrypted file, decrypt it once you are done). However I shudder to think about how much malware people are going to get from sites purporting to make "special megaupload decryption tools".
- kanzure 14y ago> Javascript has no way to output data that is then saved to disk. First, there's HTML5 window.saveAs which apparently nobody has implemented. Second, you can always fall back to some swf. http://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file http://stackoverflow.com/questions/2897619/using-html5-javas...
- ars 14y agoPeople routinely download GB+ messages - neither of those options are practical for files of that size.
- robin_reala 14y agohttps://github.com/eligrey/FileSaver.js https://github.com/eligrey/FileSaver.js FileSaver.js implements the W3C saveAs() FileSaver interface in browsers that do not natively support it. No IE support, but what’s the intersection of Mega users and IE users?