Pular para o conteúdo principal

Gerador de Hash Argon2

Gere um hash RFC 9106 Argon2id, Argon2i ou Argon2d real a partir de uma senha ou mensagem, com custo de memória, iterações e paralelismo configuráveis. Executado inteiramente no seu navegador.

Entrada

Argon2id (recomendado) é um híbrido resistente a ataques de canais laterais e GPU. Argon2i resiste a canais laterais; Argon2d maximiza a resistência a GPU.

Memória usada durante o hashing, em KiB. 19456 KiB (19 MiB) é a recomendação mínima atual da OWASP.

Número de passagens pela memória (custo de tempo).

Número de vias paralelas.

Comprimento da chave derivada em bytes. 32 bytes (256 bits) é o padrão comum.

Um sal aleatório é gerado por padrão — recomendado.

A string codificada em PHC inclui a variante, parâmetros e sal.

Saída

O sal usado para este hash, codificado em hexadecimal.

Isso foi útil?

Guias

What this tool does

It computes a real Argon2 hash — Argon2id, Argon2i, or Argon2d, as specified in RFC 9106 — from a password or message you enter, with configurable memory cost, iterations, parallelism, hash length, and salt. Output is available as a PHC-encoded string (the portable $argon2id$v=19$m=...,t=...,p=...$salt$hash format most libraries expect), hex, or Base64.

What is Argon2?

Argon2 is a memory-hard key derivation function — the winner of the 2015 Password Hashing Competition, and the current best-practice choice (per OWASP) for hashing passwords before storing them. Unlike a plain hash function (MD5, SHA-256), Argon2 is deliberately slow and memory-intensive, which makes brute-force and GPU/ASIC cracking attacks far more expensive without meaningfully slowing down a single legitimate login check.

Argon2id (the default here, and the recommended variant for almost all use cases) is a hybrid of the other two: resistant to both GPU cracking (like Argon2d) and side-channel timing attacks (like Argon2i). Argon2i favors side-channel resistance; Argon2d favors maximum GPU/ASIC resistance but is more vulnerable to certain side-channel attacks — it's typically used for cryptocurrency or non-interactive settings rather than password storage.

The parameters

  • Memory cost (m), in KiB — how much RAM the computation uses. Higher is more secure but slower. 19456 KiB (19 MiB) is OWASP's current minimum recommendation for interactive use (e.g. a login form).
  • Iterations (t) — how many passes are made over that memory. Also trades security for speed.
  • Parallelism (p) — the number of independent lanes the algorithm's internal computation is split into. This changes the derived output (it's a real Argon2 parameter, not just a speed knob), so hashing the same password with a different p produces a different hash.
  • Hash length — the size, in bytes, of the derived key/hash itself. 32 bytes (256 bits) is typical.
  • Salt — a random value mixed into every hash so identical passwords don't produce identical hashes. Leave it on auto-generate unless you specifically need a reproducible salt for testing.

How to use it

  1. Enter the password or message to hash.
  2. Adjust the Argon2 parameters if needed — the defaults are a reasonable, OWASP-aligned starting point.
  3. Choose a salt mode and output format.
  4. Click Generate hash.
  5. Copy the result, or download it as a text file.

FAQ

Is this safe to use for real passwords? The computation runs entirely in your browser — your password is never sent anywhere. The underlying Argon2 implementation is @noble/hashes, an independently audited, open-source library; this tool doesn't reimplement the algorithm itself.

Why is Generate slower than other tools on this site? That's by design — Argon2 is meant to be computationally expensive, so that trying millions of password guesses is expensive too. Raising memory cost or iterations makes it slower still (and more secure); this tool caps both to keep the browser responsive.

Can I verify a password against an existing Argon2 hash here? Not currently — this tool focuses on generating hashes. To verify, most languages have a built-in or well-known Argon2 verify function (e.g. PHP's password_verify()).

Why does the PHC string not always match other tools with the "same" settings? If the salt differs, the hash differs — that's the point of a salt. Compare the parameters (m, t, p, v) inside the PHC string instead, or set a custom salt on both sides for a like-for-like comparison.

Privacy

Everything happens client-side in your browser. Nothing you type here — the password, salt, or resulting hash — is transmitted to or stored on our servers.

argon2hashpasswordkdfcryptosecurityrfc9106generator

Use it from code

From 3 credits per call

REST API

curl -X POST https://api.iotools.cloud/v1/tool/argon2-hash-generator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "password": "correct horse battery staple",
    "variant": "argon2id",
    "memoryCost": "19456",
    "iterations": "2",
    "parallelism": "1",
    "hashLength": "32",
    "saltMode": "custom",
    "customSalt": "argon2-tool-salt",
    "outputFormat": "encoded"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `argon2-hash-generator` tool (Argon2 Hash Generator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Parte de um fluxo de trabalho

Todas as coleções

Ama as ferramentas? Livre-se dos anúncios.

Um único pagamento remove todos os anúncios da sua conta, para sempre. Sem assinatura, sem rastreamento.