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.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

srisum-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file srisum-1.0.0.tar.gz.

File metadata

  • Download URL: srisum-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.8.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for srisum-1.0.0.tar.gz
Algorithm Hash digest
SHA256 53e1b4c26991a15a022e342ff34daee5b1952750563f21ee22fab0b3c18e320d
MD5 7b01dcadd1ecd4768c8456610c92f57b
BLAKE2b-256 c5d45488a41882c58262fde7324534bf3c0bc439b9a2b1ddc27d79aa5fe60ad7

See more details on using hashes here.

File details

Details for the file srisum-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: srisum-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.8.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for srisum-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 640b3e6bff05220bcf8def00d122ac45cb7841af4f5e4a2bfca40064f76739f0
MD5 0648e61b02085b29388a5b26f1347ebb
BLAKE2b-256 21d553fb504a790b1d1d972a29bba47061f307c13ccb66a64ccd5da5d27dfaa4

See more details on using hashes here.

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