Locally or even during download in the browser mega.nz sends you encrypted blobs which are decrypted using the download auth key after the download is verified they use html5 storage and JavaScript to achieve this.