{
 "kind": "tool",
 "slug": "passlib",
 "path": "tools/passlib/",
 "name": "passlib",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Comprehensive password hashing framework supporting 30+ algorithms and schemes.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install passlib"
 },
 "links": [
  {
   "label": "Website",
   "href": "https://passlib.readthedocs.io"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "BSD",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license field.",
   "src": "https://passlib.readthedocs.io"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": null,
   "note": "",
   "src": "https://passlib.readthedocs.io"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "58 projects",
   "status": "info",
   "sub": "#13 of 141 in its category",
   "note": "Dependency in 58 public GitHub projects set up for AI coding agents that we scanned (0.9%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What passlib does",
   "parts": [
    {
     "t": "prose",
     "text": "Comprehensive password hashing framework supporting 30+ algorithms and schemes."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "passlib popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "64",
       "of": "/ 100",
       "l": "Gid Score, #745 overall"
      },
      {
       "n": "7.9M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "58",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How passlib is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "passlib is a dependency in 58 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.6% of the 1,623 Python ones), #13 of 141 in auth and security libraries.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 304; those are left out of every share on this page.",
      "The most used alternative in our scan is python-jose (58 projects).",
      "Projects that use it most often also use FastAPI (94.8%), Uvicorn (93.1%), Pydantic (82.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "30 projects, 0.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "27 projects, 1.1%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "25 projects, 0.8%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "5 projects, 1.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 94.8% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 93.1% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 82.8% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 77.6% of its projects",
       "v": "python-multipart",
       "path": "tools/python-multipart/"
      },
      {
       "l": "In 75.9% of its projects",
       "v": "SQLAlchemy",
       "path": "tools/sqlalchemy/"
      },
      {
       "l": "In 74.1% of its projects",
       "v": "python-jose",
       "path": "tools/python-jose/"
      },
      {
       "l": "In 67.2% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 58.6% of its projects",
       "v": "Pydantic Settings",
       "path": "tools/pydantic-settings/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about passlib",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Head to head",
       "items": [
        {
         "text": "passlib vs bcrypt (Python)",
         "note": "used together in 23 projects",
         "path": "tools/compare/passlib-vs-bcrypt-python/"
        }
       ]
      },
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "NextAuth.js",
         "path": "tools/next-auth/"
        },
        {
         "text": "jsonwebtoken",
         "path": "tools/jsonwebtoken/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "Better Auth",
         "path": "tools/better-auth/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "passlib",
       "me": true,
       "facts": [
        "BSD",
        "Gid 64",
        "7.9M/wk"
       ]
      },
      {
       "name": "python-jose",
       "why": "JOSE (JSON Object Signing and Encryption) implementation for Python.",
       "path": "tools/python-jose/",
       "facts": [
        "MIT",
        "Gid 58",
        "7.1M/wk"
       ]
      },
      {
       "name": "bcrypt (Python)",
       "why": "Modern password hashing library with secure bcrypt algorithm implementation.",
       "path": "tools/bcrypt-pypi/",
       "facts": [
        "Apache-2.0",
        "Gid 66",
        "41M/wk"
       ]
      },
      {
       "name": "Authlib",
       "why": "Ultimate Python library for building OAuth and OpenID Connect servers and clients.",
       "path": "tools/authlib/",
       "facts": [
        "BSD",
        "Gid 70",
        "38.2M/wk"
       ]
      }
     ],
     "more": "Compare passlib with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install passlib"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for passlib yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi passlib"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "BSD"
  ],
  [
   "Gid Score",
   "63.8"
  ],
  [
   "Rank in category",
   "#13 of 141"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": null
}