3

New release of “inlinehashes”

 1 year ago
source link: https://blog.ovalerio.net/archives/2538
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

New release of “inlinehashes” – Gonçalo ValérioSkip to the content

Thoughts, projects and some other stuff

Last year, I built a small tool to detect inline styles and scripts in a given webpage/document and then calculate their hashes. It can be useful for someone trying to write a strict “Content-Security-Policy” (CSP) for pre-built websites. I described the reasoning at the time in this blog post.

Today, I’m writing to announce that I released the version 0.0.5 of inlinehashes. The main changes are:

  • CSP directives are now displayed for each hash, helping you to know right away where to place them.
  • The --target option now uses CSP directives to filter the output instead of needing to remember any custom value.
  • New output formats were added, instead of relying just on JSON.
Screenshot of the output of inlinehashes 0.0.5

One problem of this version is that it only supports Python 3.11. So for other interpreter versions, you are stuck with version 0.0.4. I expect to fix this soon and make everything work for, at least, the last three versions of Python.

You can find out more on PyPI and on the source code repo.

3e084672ade86cfe255fe710fe9ba66e?s=160&d=mm&r=g

By Gonçalo Valério

Software developer and owner of this blog. More in the "about" page.

View Archive →


Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK