SRI (Subresource Integrity) hash generator







Purpose of SRI with TLS (Transport Layer Security)


Legend:

Without SRI

Client <-- --> Server
Client <-- --> Compromised server

With SRI

Client <-- --> Server

Client <-- --> Compromised server

With SRI, the client won't load the compromised resource since its integrity was compromised, while being intact with TLS.