hash_text
Compute a cryptographic hash of any text string using SHA-256, SHA-1, or SHA-512. Returns a lowercase hex string for integrity checks or content fingerprinting.
Instructions
Compute a cryptographic hash (SHA-256, SHA-1, or SHA-512) of any text string. Returns the hash as a lowercase hex string. Has no side effects. Use for integrity checks, content fingerprinting, or generating deterministic IDs from content. Do NOT use for password storage — use a dedicated KDF (bcrypt, argon2) instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to hash. | |
| algorithm | No | Hash algorithm to use. Default "SHA-256". | SHA-256 |