# Hash Text Guide

Compute MD5, SHA-1, SHA-256 and SHA-512 digests of text.

- Tool: https://ilham.dev/tools/hash-text/
- Guide URL: https://ilham.dev/guides/hash-text/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: Security and Cryptography Basics for Developers (https://ilham.dev/guides/security-cryptography-basics/)

## What it does

Compute MD5, SHA-1, SHA-256 and SHA-512 digests of any text. SHA-256 and SHA-512 use the browser's WebCrypto implementation; MD5 and SHA-1 are here because they still turn up in checksums and older protocols, not because they are safe for anything that matters.

## Use the tool

Open https://ilham.dev/tools/hash-text/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Crypto.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## Questions

### Can I use MD5 for passwords?

No. MD5 and SHA-1 are broken for anything security-related — both have practical collision attacks, and neither is designed to be slow. Use bcrypt or Argon2 for passwords.

### Why is there no SHA-3?

WebCrypto does not expose it. Adding it would mean shipping a JavaScript implementation, which would be slower than native code and easy to get subtly wrong.