a11y.skipToMainContent
1

ตัวจําลองความถูกต้องของทรัพยากร

สร้างความถูกต้องของ subrecess (SRI) สําหรับจาวาสคริปต์และแฟ้ม CSS ป้องกันเว็บไซต์ของคุณจากทรัพยากร 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 Hadh.
  4. คัดลอกป้าย HTML ด้วยคุณสมบัติของความถูกต้อง.

อะไรคือ?

ความซื่อสัตย์ของ Subreource (SRI) เป็นคุณสมบัติด้านความปลอดภัยที่ช่วยให้บราวเซอร์ตรวจสอบว่าทรัพยากรที่ดึงมาจาก CDNs ยังไม่ได้ถูกแก้ไข คุณเพิ่มแอตทริบิวต์ที่ใช้กับสคริปต์หรือที่อยู่เชื่อมโยงด้วย hadh ของเนื้อหาแฟ้มที่ต้องการ เครื่องมือนี้สร้าง SRI Hesches (SHA-256, Sha-384, SHA-512) สําหรับที่อยู่ URL หรือเนื้อหาแฟ้มใด ๆ มันสร้างคุณค่าความสมบูรณ์ของคุณสมบัติและป้าย HTML ด้วยแอททริจิน

Advertisement

FAQ

อัลกอริธึมแฮชที่ฉันควรจะใช้คืออะไร?
SHA-384 ได้รับการแนะนําว่า เป็นความสมดุลที่ดีของความปลอดภัยและความเข้ากันได้ SHA-512 ให้ความปลอดภัยสูงสุด.
ฉันจําเป็นต้องใช้ครอสริจิน?
ใช่ — The syrigin='anonimous access ต้องให้ SRI ทํางานกับทรัพยากรข้ามประเทศ.

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