メインコンテンツにスキップ

Argon2 ハッシュ生成ツール

パスワードやメッセージからRFC 9106準拠のArgon2id、Argon2i、またはArgon2dハッシュを生成します。メモリコスト、反復回数、並列性を設定可能で、すべてブラウザ内で動作します。

入力

Argon2id(推奨)はサイドチャネル攻撃とGPU攻撃の両方に耐性のあるハイブリッドです。Argon2iはサイドチャネル攻撃に耐性があり、Argon2dはGPU耐性を最大化します。

ハッシュ化で使用するメモリ量 (KiB)。OWASPの現在の推奨最小値は19456 KiB (19 MiB) です。

メモリパスの回数(時間コスト)。

並列レーン数。

派生キーの長さ (バイト)。一般的なデフォルトは32バイト (256ビット) です。

デフォルトでランダムなソルトが生成されます(推奨)。

PHCエンコード文字列にはバリアント、パラメータ、ソルトが含まれます。

出力

このハッシュに使用された16進エンコードソルト。

役に立ちましたか?

ガイド

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.

ワークフローの一部

すべてのコレクション

ツールが気に入りましたか?広告をなくしましょう。

1回のお支払いでアカウントから広告が完全になくなります。サブスクリプションも追跡もありません。