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 days446,071
Downloads35,283,610
Analytics install events (30 days)35,909
Downloads / install events (30 days)12.4×

Source: GitHub Packages, fetched 2026-11-08T00:52:35Z. Analytics dates: 2026-10-09 to 2026-11-08. 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
Installs35,90993,752630,167
Installs (--HEAD)0215
Installs on Request2677426,086
Installs on Request (--HEAD)013
Build Errors1