CSP Hash Generator
A Content Security Policy (CSP) helps protect your site by preventing the browser from executing unauthorized or malicious JavaScript. One way of doing this is by generating a cryptographic hash of your JavaScript so your browser can compare it to the hashes listed in your CSP. If the hash matches, it indicates the script is safe to run.
Paste your JavaScript below to generate its corresponding CSP hash. This hash can be added to the script-src
or style-src
directive of your CSP.