🍺 BREW Explorer

← all formulae

nettle

brew install nettle v4.0 GPL-2.0-or-later OR LGPL-3.0-or-later

Low-level C cryptographic library providing hash, cipher, and public-key algorithms.

Why you might care

Nettle is a lightweight alternative to OpenSSL for applications that need AES, SHA, RSA, or ECDSA but want minimal dependencies and a simpler API. Primarily used as a build dependency (GnuTLS, GNU Guix) rather than directly; it depends only on GMP and avoids the complexity of OpenSSL.

Categories

Alternatives

OpenSSL libgcrypt mbedTLS
70.1k
30-day installs · #73
225.7k
90-day · #81
797.8k
365-day · #78

Runtime dependencies

gmp

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [
    "libnettle",
    "nettle@4"
  ],
  "alternatives": [
    "OpenSSL",
    "libgcrypt",
    "mbedTLS"
  ],
  "build_dependencies": [],
  "categories": [
    "library",
    "crypto"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "gmp"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Low-level cryptographic library",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:38+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "nettle",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://www.lysator.liu.se/~nisse/nettle/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "Nettle - a low-level crypto library",
  "installs_30d": 70052,
  "installs_365d": 797819,
  "installs_90d": 225721,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-2.0-or-later OR LGPL-3.0-or-later",
  "llm_generated_at": "2026-06-20T23:42:31+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "nettle",
  "oldnames": [],
  "one_liner": "Low-level C cryptographic library providing hash, cipher, and public-key algorithms.",
  "optional_dependencies": [],
  "rank_30d": 73,
  "rank_365d": 78,
  "rank_90d": 81,
  "raw_hash": "7f023cd03ae4bef3",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/n/nettle.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    {
      "m4": "build"
    }
  ],
  "version_head": null,
  "version_stable": "4.0",
  "versioned_formulae": [
    "nettle@3"
  ],
  "why_use_this": "Nettle is a lightweight alternative to OpenSSL for applications that need AES, SHA, RSA, or ECDSA but want minimal dependencies and a simpler API. Primarily used as a build dependency (GnuTLS, GNU Guix) rather than directly; it depends only on GMP and avoids the complexity of OpenSSL."
}