{
 "kind": "tool",
 "slug": "pynacl",
 "path": "tools/pynacl/",
 "name": "PyNaCl",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Python binding to NaCl cryptography library for secure encryption and signing.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install pynacl"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pyca/pynacl"
  },
  {
   "label": "Website",
   "href": "https://github.com/pyca/pynacl/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/pyca/pynacl"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 3, 2026",
   "note": "",
   "src": "https://github.com/pyca/pynacl"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "6 projects",
   "status": "info",
   "sub": "#65 of 141 in its category",
   "note": "Dependency in 6 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "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 PyNaCl does",
   "parts": [
    {
     "t": "prose",
     "text": "Python binding to NaCl cryptography library for secure encryption and signing."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PyNaCl popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "60",
       "of": "/ 100",
       "l": "Gid Score, #1005 overall"
      },
      {
       "n": "40.2M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "1,212",
       "l": "GitHub stars"
      },
      {
       "n": "6",
       "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 PyNaCl is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PyNaCl is a dependency in 6 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 172 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is cryptography (148 projects).",
      "Projects that use it most often also use Requests (84.9%), cryptography (76.7%), aiohttp (75.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "5 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 84.9% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 76.7% of its projects",
       "v": "cryptography",
       "path": "tools/cryptography/"
      },
      {
       "l": "In 75.0% of its projects",
       "v": "aiohttp",
       "path": "tools/aiohttp/"
      },
      {
       "l": "In 75.0% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 73.3% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 72.1% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 70.3% of its projects",
       "v": "CFFI",
       "path": "tools/cffi/"
      },
      {
       "l": "In 70.3% of its projects",
       "v": "Pillow",
       "path": "tools/pillow/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PyNaCl",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "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": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "Better Auth",
         "path": "tools/better-auth/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        },
        {
         "text": "Helmet",
         "path": "tools/helmet/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "PyNaCl",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 60",
        "40.2M/wk"
       ]
      },
      {
       "name": "cryptography",
       "why": "Python library providing cryptographic recipes and primitives for secure applications.",
       "path": "tools/cryptography/",
       "facts": [
        "Apache-2.0 OR BSD-3-Clause",
        "Gid 77",
        "316M/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": "keyring",
       "why": "Python library for securely storing and retrieving passwords and secrets.",
       "path": "tools/keyring/",
       "facts": [
        "MIT",
        "Gid 61",
        "37.7M/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 PyNaCl with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install pynacl"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PyNaCl yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi pynacl"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "60.3"
  ],
  [
   "Rank in category",
   "#65 of 141"
  ],
  [
   "GitHub",
   "pyca/pynacl"
  ],
  [
   "Last change",
   "Nov 3, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pyca.png"
}