crypto_hash
Generate cryptographic hash digests from text using MD5, SHA, or HMAC algorithms. Choose output case and MD5 bit length (16/32) as needed.
Instructions
散列/哈希计算(不可逆)。algorithm 可选:md5、sha1、sha224、sha256、sha384、sha512、hmac-md5、hmac-sha1、hmac-sha224、hmac-sha256、hmac-sha384、hmac-sha512。MD5 支持 16/32 位输出
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | hmac-* 算法的密钥 | |
| bits | No | 仅 MD5 有效:16 位取中间段 | 32 |
| case | No | 输出大小写 | lower |
| text | Yes | ||
| algorithm | No | md5 |