nettle

Install command:
brew install nettle

Also known as: libnettle, nettle@4

Low-level cryptographic library

https://www.lysator.liu.se/~nisse/nettle/

License: GPL-2.0-or-later OR LGPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/nettle.json

Formula code: nettle.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 4.0

Other versions:

nettle@3 3.10.2 Low-level cryptographic library

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library

Uses from macOS: m4 (build)

Binaries: nettle-hash, nettle-lfib-stream, nettle-pbkdf2, pkcs1-conv, sexp-conv

GitHub Packages downloads:

Last 30 days445,276
Downloads35,609,347
Analytics install events (30 days)34,796
Downloads / install events (30 days)12.8×

Source: GitHub Packages, fetched 2026-11-29T00:56:04Z. Analytics dates: 2026-10-30 to 2026-11-29. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs34,79391,386616,344
Installs (--HEAD)3318
Installs on Request2176315,891
Installs on Request (--HEAD)003
Build Errors1