Re:ProtonMail now the maintainer of OpenPGPjs email encrypti...
by deftnerd on Wednesday August 10, 2016 @11:07PM
(#12266107)
Another thing in the security tool chest is SubResource Integrity. If your JS is hosted on a CD you can put a hash of the expected JavaScript within the HTML script declaration. When the browser downloads it, it'll verify the hash before executing it.
https://developer.mozilla.org/en-US/docs/Web/Security/Subres...