哈希生成
输入文本即时生成 MD5、SHA-1、SHA-256 和 SHA-512 摘要,支持大小写十六进制。
完全在浏览器中运行 — 粘贴的内容不会被上传。
摘要随输入即时更新。SHA-1、SHA-256、SHA-512 使用 Web Crypto API,MD5 由 TypeScript 实现计算,因此不会离开浏览器。
正在计算摘要…
哈希参考
快速参考- 32 / 40 / 64 / 128
- MD5、SHA-1、SHA-256、SHA-512 十六进制摘要的字符长度。
- MD5
- 速度快,仍常用于缓存键和校验和,但用于安全场景已被攻破。
- SHA-1
- 在出现实际碰撞案例后,已不推荐用于签名和证书。
- SHA-256
- 校验和、内容寻址和签名的默认选择。
- crypto.subtle.digest
- 浏览器中计算哈希的 Web Crypto API 调用,返回 ArrayBuffer。
- HMAC
- 带密钥的消息认证哈希;普通哈希无法证明是谁发送的。
Go 相关语法指南
全部 Go 指南Go http.Client: unexpected EOF and Connection Reuse Leaks
A body closed without being read cannot be reused, and descriptors pile up. Idle timeouts shorter than the upstream's, MaxIdleConnsPerHost and safe retries.
GoGo context.DeadlineExceeded vs Canceled and Goroutine Leaks
A deadline is retryable and a cancellation is not, and both arrive wrapped. The errors.Is checks, the four handler timeouts, and the goroutine dump that names the leak.
GoGo Module Errors: Checksum Mismatch, 404s, and Proxy Failures
A checksum mismatch is not a cache bug. Separate the proxy, the sum database, and go.sum, then fix the layer the message names instead of editing the hash.
GoGo iota: Enumerations, Bitmask Flags, and Constant Expressions
How iota advances per const line, typed enums with gaps, bit flags with 1 << iota, and the unit scale pattern that shifts with one blank line.