Hash generator
Compute an MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256 or BLAKE2b hash of text or bytes.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/hash \
-H 'Content-Type: application/json' \
-d '{"input":{"text":"hello"}}'
import json, urllib.request
body = {'input': {'text': 'hello'}}
request = urllib.request.Request("https://setget.net/v1/tools/hash", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/hash", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"text":"hello"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "hash",
"input": {
"text": "hello"
}
}
{
"input": {
"text": "hello"
}
}
Endpoint: POST /v1/tools/hash. Over MCP: run_tool with slug: "hash".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
text |
string | yes | The input to hash. |
algorithm |
string | no | The hash function to use. One of: md5, sha1, sha256, sha384, sha512, sha3-256, blake2b. Default: "sha256". |
input_encoding |
string | no | How the input is written: plain text (read as UTF-8), hex digits or base64. One of: text, hex, base64. Default: "text". |
output |
string | no | How to write the result. One of: hex, base64. Default: "hex". |
Examples
Input
{
"text": "hello"
}Result
{
"text": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
"algorithm": "sha256",
"bits": 256,
"bytes": 5
}MD5
Input
{
"text": "abc",
"algorithm": "md5"
}Result
{
"text": "900150983cd24fb0d6963f7d28e17f72",
"algorithm": "md5",
"bits": 128,
"bytes": 3
}Hex input, base64 output
Input
{
"text": "616263",
"input_encoding": "hex",
"algorithm": "sha1",
"output": "base64"
}Result
{
"text": "qZk+NkcGgWq6PiVxeFDCbJzQ2J0=",
"algorithm": "sha1",
"bits": 160,
"bytes": 3
}Questions
- Are MD5 and SHA-1 safe to use?
- Not for security. Both are broken for signatures and certificates, and no plain hash, however strong, is suitable for storing passwords: use a password hashing function such as Argon2, scrypt or bcrypt. MD5 and SHA-1 are still fine for spotting accidental file corruption.
- Why is my hash different from another tool?
- Usually because of an invisible difference in the input: a trailing line break, a different line ending or a different text encoding. Text is hashed here as UTF-8 exactly as sent.
- Can a hash be reversed?
- No. A hash is one-way. Short or common inputs can still be guessed by trying candidates, which is why plain hashes must not be used for passwords.
Related tools
- All hashes at onceCompute every supported hash of one input at once: MD5, SHA-1, SHA-2, SHA3-256 and BLAKE2b.
hash-all - HMAC generatorCompute an HMAC signature of a message with a secret key, as hex or base64.
hmac - CRC-32 and Adler-32 checksumCompute the CRC-32 and Adler-32 checksums of text or bytes, as decimal and hex.
crc32 - Base64 encoder and decoderEncode text to Base64 or decode it back, in the standard or URL-safe alphabet.
base64 - Hex encoder and decoderConvert text to hexadecimal bytes and back, with optional upper case and separators.
hex - Base32 encoder and decoderEncode text to Base32 (RFC 4648) or decode it back, with or without padding.
base32