Creates hashes of inline script and inline style tags in websites and HTML files that can be used easily in CSP (Content Security Policy) headers.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Florian Bausch fa27560c18 Fix bug when no URL or file given 2 weeks ago
src Fix bug when no URL or file given 2 weeks ago
.gitignore Initial commit 3 weeks ago
LICENSE Initial commit 3 weeks ago
README.md add usage 3 weeks ago

README.md

CSP Hash

Creates hashes of inline script and inline style tags in websites and HTML files that can be used easily in CSP (Content Security Policy) headers.

Usage

usage: csp-hash.py [-h] [-u URL] [-f FILE] [-s SHA]

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     Specify a URL to retrieve. Can be used several times.
  -f FILE, --file FILE  Specify an HTML file to load. Can be used several times.
  -s SHA, --sha SHA     Specify the SHA algorithm (supported: 256, 384, 512).