hash_text
Generate a cryptographic hash of any text for password hashing, data integrity checks, or digital signatures. Supports MD5, SHA1, SHA256, SHA512 with hex or base64 output.
Instructions
Generate a cryptographic hash of input text.
Use this for password hashing, data integrity checks, digital signatures,
or any scenario requiring a one-way hash of a string.
Parameters:
text — The text to hash (required).
algorithm — Hashing algorithm: "md5", "sha1", "sha256", or "sha512"
(default: "sha256"). SHA-256 and SHA-512 are recommended for
security-sensitive use.
encoding — Output encoding: "hex" or "base64" (default: "hex").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| algorithm | No | sha256 | |
| encoding | No | hex |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |