{
  "id": "enwiki-001368028665",
  "slug": "pbkdf2",
  "title": "PBKDF2",
  "qid": "",
  "lead": "In cryptography, PBKDF1 and PBKDF2 (Password-Based Key Derivation Function 1 and 2) are key derivation functions with a sliding computational cost, used to reduce vulnerability to brute-force attacks. PBKDF2 is part of RSA Laboratories' Public-Key Cryptography Standards (PKCS) series, specifically PKCS #5 v2.0, also published as Internet Engineering Task Force's RFC 2898. It supersedes PBKDF1, which could only produce derived keys up to 160 bits long. RFC 8018 (PKCS #5 v2.1), published in 2017, recommends PBKDF2 for password hashing.",
  "body": "In cryptography, PBKDF1 and PBKDF2 (Password-Based Key Derivation Function 1 and 2) are key derivation functions with a sliding computational cost, used to reduce vulnerability to brute-force attacks. PBKDF2 is part of RSA Laboratories' Public-Key Cryptography Standards (PKCS) series, specifically PKCS #5 v2.0, also published as Internet Engineering Task Force's RFC 2898. It supersedes PBKDF1, which could only produce derived keys up to 160 bits long. RFC 8018 (PKCS #5 v2.1), published in 2017, recommends PBKDF2 for password hashing. PBKDF2-HMAC-SHA1(\"plnlrtfpijpuhqylxbgqiiyipieyxvfsavzgxbbcfusqkozwpngsyejqlmjsytrmd\", ...) PBKDF2-HMAC-SHA1(\"eBkXQTfuBqp'cTcar&g*\", ...) will generate the same derived key bytes ( 17EB4014C8C461C300E9B61518B9A18B ). These derived key collisions do not represent a security vulnerability – as one still must know the original password in order to generate the hash of the password. ==Alternatives to PBKDF2== One weakness of PBKDF2 is that while its number of iterations can be adjusted to make it take an arbitrarily large amount of computing time, it can be implemented with a small circuit and very little RAM, which makes brute-force attacks using application-specific integrated circuits or graphics processing units relatively cheap. The bcrypt password hashing function requires a larger amount of RAM (but still not tunable separately, i.e. fixed for a given amount of CPU time) and is significantly stronger against such attacks, while the more modern scrypt key derivation function can use arbitrarily large amounts of memory and is therefore more resistant to ASIC and GPU attacks. In 2013, the Password Hashing Competition (PHC) was held to develop a more resistant approach. On 20 July 2015 Argon2 was selected as the final PHC winner, with special recognition given to four other password hashing schemes: Catena, Lyra2, yescrypt and Makwa. Another alternative is Balloon hashing, which is recommended in NIST password guidelines. To limit a brute-force attack, it is possible to make each password attempt require an online interaction, without harming the confidentiality of the password. This can be done using an oblivious pseudorandom function to perform password hardening. This can be done as alternative to, or as an additional step in, a PBKDF. ==See also== List of PBKDF2 implementations ==References== == External links== – Specification of PKCS #5 v2.0. – Test vectors for PBKDF2 with HMAC-SHA1. NIST Special Publication 800-132 Recommendation for Password-Based Key Derivation",
  "categories": [
    "22944327",
    "23118434",
    "23603337",
    "28683868",
    "29689885",
    "32500088"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1368028665",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1786025931.0,
  "claims": [
    {
      "id": 29836425,
      "subject_qid": "",
      "subject_slug": "pbkdf2",
      "predicate": "publication date",
      "object_text": "2017",
      "object_num": 20170000.0,
      "object_unit": null,
      "polarity": 1,
      "qualifier": "",
      "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1368028665",
      "source_name": "Wikipedia",
      "source_tier": 3,
      "retrieved_at": 1792486304.6622932,
      "confidence": 0.95,
      "article_slug": "pbkdf2",
      "span_start": 25,
      "span_end": 74
    }
  ],
  "contradictions": [],
  "confidence": 0.95,
  "csl": {
    "id": "enwiki-001368028665",
    "type": "webpage",
    "title": "PBKDF2",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/pbkdf2",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          16
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001368028665",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1368028665",
    "note": "Immutable snapshot enwiki-001368028665"
  }
}