1) The problem with that is trusting the code you download to actually encrypt the data.  If it could be linked with the file upload button or some such functionality solely reliant on the browser to get right, it could work.<p>2) You mean something like keygen[1]? (yes, I know it was removed from the standard.)<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTML&#x2F;Element&#x2F;keygen" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;HTML&#x2F;Element&#x2F;ke...</a> (