---
title: "Discussion on \"Generate Subresource Integrity (SRI) Hashes in Python and Fail CI When a CDN Script Changes\" | Hashnode"
description: "Discussion on \"Generate Subresource Integrity (SRI) Hashes in Python and Fail CI When a CDN Script Changes\". A stdlib CLI that hashes local files or HTTPS URLs (sha256 / sha384 / sha512), prints ready-to-paste script/link tags, and exits 1 on verify mismatch — with 7 unit tests"
url: "https://hashnode.com/posts/generate-subresource-integrity-sri-hashes-in-python-and-fail-ci-when-a-cdn-script-changes/6aee7b9a63d4c0610b865299"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generate Subresource Integrity (SRI) Hashes in Python and Fail CI When a CDN Script Changes](https://jadenvo259.hashnode.dev/generate-subresource-integrity-sri-hashes-in-python-and-fail-ci-when-a-cdn-script-changes?utm_source=hashnode&utm_medium=feed)

A stdlib CLI that hashes local files or HTTPS URLs (sha256 / sha384 / sha512), prints ready-to-paste script/link tags, and exits 1 on verify mismatch — with 7 unit tests

4d ago · 6 min read · jadenvo259.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#security](https://hashnode.com/tag/security)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#devops](https://hashnode.com/tag/devops)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Jaden Vo](https://hashnode.com/@jadenvo259)

@jadenvo259

  
[View profile](https://hashnode.com/@jadenvo259)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
