News for hackers. Stuff that matters.
Re:Tanker: End-to-End Encryption SDK for JavaScript by itslennysfault on Wednesday May 22, 2019 @08:17PM (#19987051)
You can use subresource integrity in the script tag which uses a sha hash to confirm the script is what is designated in the html. However, the html could be changed in transit so the only real way this can work is if you do that AND expose the sha hash to the user who has the last known valid sha hash locally that they can manually check against. It's not pretty, but it works.

https://developer.mozilla.org/en-US/docs/Web/Security/Subres...

There are no comments on this comment yet.