SRI Hash Generator
Computes sha256, sha384, and sha512 Subresource Integrity (SRI) hash strings for a script or stylesheet's contents, ready to paste into an integrity attribute.
Computes sha256, sha384, and sha512 Subresource Integrity (SRI) hash strings for a script or stylesheet's contents, ready to paste into an integrity attribute.
Use cases
- Generating an integrity attribute for a script or link tag
- Verifying a third-party script's contents match a published hash
Examples
The word 'hello'
hello
{"sha256": "sha256-LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ=", "sha384": "sha384-WeF0h3dEjGnea4ANejO7+5/xtGPkQ1TDVTvNucZm+pASWjx5+QOXvfX2oT3oKGhP", "sha512": "sha512-m3HSJL1i83hdltRq0+o9czGb+8KJDKra4t/3JRlnPKcjI8PZm6XBHXx6zG4UuMXaDEZjR1wuXDre9G9zvN7AQw=="}FAQ
Is my data sent to a server?
Yes — the calculation runs on the server for this tool.