ToolypetMCP
beginner2 minutesdev

File Hash Integrity Check

Generate and verify file hashes for integrity checking, checksum validation, and secure downloads.

hashintegritychecksumsecurity

このレシピの使いどころ

Verify file downloads, detect data corruption, and ensure build artifact integrity. Used in CI/CD pipelines, package managers, and secure file distribution.

ステップ

1

Generate multiple hash algorithms

プロンプト:Generate MD5, SHA-256, and SHA-512 hashes of the file content
2

Verify hash matches

プロンプト:Compare the expected hash with the computed hash to verify integrity

よくある質問

MD5 vs SHA-256 — which should I use for checksums?

SHA-256 for security-sensitive verification. MD5 is faster for non-security checksums (data corruption detection) but vulnerable to collision attacks.

How do package managers use hashes?

npm, pip, and cargo store expected hashes in lock files. During install, they compute the downloaded package hash and compare — rejecting mismatches to prevent supply chain attacks.

関連レシピ