a11y.skipToMainContent
1

サブリソース整合性ジェネレータ

JavaScriptとCSSファイル用のサブリソース整合(SRI)ハッシュを生成します。 CDN リソースの妥協からサイトを保護します.

SRI Hash Generator
HTML Tag with Integrity

Note: This generates a placeholder hash. For real SRI, fetch the file and compute the hash server-side or use a build tool.

More options
Was this tool helpful?
Send output to:
Advertisement

How to use SRI Hash Generator

  1. スクリプトまたはスタイルシートのURLを入力します.
  2. ハッシュアルゴリズム(SHA-256、SHA-384、SHA-512)を選択します.
  3. 生成をクリックしてSRIハッシュを作成します.
  4. 整合性属性でHTMLタグをコピーします.

SRIハッシュジェネレータとは?

Subresource Integrity(SRI)は、ブラウザがCDNから取得したリソースが改ざんされていないことを確認できるセキュリティ機能です。 想定したファイルコンテンツのハッシュでタグをスクリプトやリンクする際の完全性属性を追加します。

このツールは、任意のURLまたはファイルコンテンツのSRIハッシュ(SHA-256、SHA-384、SHA-512)を生成します。 完全な整合性属性値と、クロスオリジン属性を持つHTMLタグを作成します。

Advertisement

FAQ

ハッシュアルゴリズムを使用するには?
SHA-384は、セキュリティと互換性の良好なバランスとして推奨されます。 SHA-512は、ほとんどのセキュリティを提供します.
クロスオリジンが必要ですか?
はい。つまり、クロスオリジンのリソースを扱うためにSRIにクロスオリジン='anonymous'属性が必要です.

Related tools

Author

NK
Prof. Noah Klein"The Privacy Guardian"

Cybersecurity Researcher & Privacy Advocate

Professor Klein holds a PhD in Information Security and has testified before EU parliamentary committees on data privacy legislation. He builds encryption tools for journalists, audits web applications for security flaws, and believes that privacy is not a feature but a fundamental right. His research has been cited in Wired, Nature, and The Guardian, and he advises nonprofits on responsible data stewardship.

Advertisement