I hope you can prove to me what is wrong here (please, please, please!). I have a situation where I need to download encrypted data from server D (for "Data"). Server K (for the "key") has an encryption key. For security, I would prefer that server D never know the key that server K knows. I want my client (for example, your browser) to connect to server D for data and Server K for the key and decrypt locally, so unencrypted files never leave your computer.
I can do this fine for text areas in dom by replacing the HTML content. However, sometimes I would like to make larger files that I transfer to the file system. For example, perhaps I want to encrypt a movie and decrypt it and transfer the contents to my video player.
I'm not a JavaScript guru anywhere, especially when it comes to extreme cases of things like a security sandbox.
For Small D, I can handle decryption, but I donโt know how to save the decrypted file. Big D seems problematic as memory runs out.
Anyone have any ideas that are not related to native plugins?
Thank!
source
share