/ tool · 02
CSP Hash Generator
Génère un hash pour un bloc <script> ou <style> inline, à inclure dans votre Content Security Policy.
Code à hasher
Couverture
- SHA-256 / 384 / 512 — les trois algos CSP
- byte-exact — hash sur les octets exacts saisis
- type auto — heuristique JS / CSS / indéterminé
- script-src / style-src — directives prêtes à coller
- quote auto — valeur CSP entourée d'apostrophes
- full header — ligne Content-Security-Policy complète