A Modern and Easy-to-Use Crypto Library
Overview
Bindings to 'libsodium' https://doc.libsodium.org/: a modern, easy-to-use software library for encryption, decryption, signatures, password hashing and more. Sodium uses curve25519, a state-of-the-art Diffie-Hellman function by Daniel Bernstein, which has become very popular after it was discovered that the NSA had backdoored Dual EC DRBG.
- Windows: use libsodium from Rtools if available
From NEWS in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 10
- Examples that run
- 100%10 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 10%
- Help pages citing references
- 80%
Downloads
Repository
- PRs merged (all time)
- 90%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/r-lib/sodium on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing sodium adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.4.0Latest
- 1.3.2
- RR 4.4.0 released · 2024-04-24
- 1.3.12023-11-20 · diff ↗
- 1.3.02023-09-26 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.2.12022-06-11 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.2.0
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2015-10-11
- Total releases
- 11 / 11 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 457 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sodium")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.