Skip to main content

Compute and display subresource integrity (SRI) checksums

Project description

About srisum

srisum is a minimal command-line tool to compute and display the Subresource Integrity checksum of a local file or a remote file accessible via an HTTPS URL.

That is useful in at least these two contexts:

  • Adding new static file asset to an existing HTML document
  • Bumping a nixOS package for nixOS from a non-nixOS host

srisum is software libre written in Python 3 and licensed under the MIT license.

Installation

# pip install srisum

Example

# srisum https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.xz
sha256-zwMtDbqbkoY2VI4ysyei1msaq2PE9KE90TLC0dLy+2o=

Alternatives

JavaScript

Python

Rust

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srisum-1.0.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

srisum-1.0.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page