{"id":14068382,"url":"https://github.com/r-lib/sodium","last_synced_at":"2025-12-12T01:05:13.263Z","repository":{"id":37810695,"uuid":"43650407","full_name":"r-lib/sodium","owner":"r-lib","description":"R bindings to libsodium","archived":false,"fork":false,"pushed_at":"2024-12-14T22:49:24.000Z","size":1005,"stargazers_count":69,"open_issues_count":11,"forks_count":11,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-31T13:18:40.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/sodium","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-lib.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-04T19:53:28.000Z","updated_at":"2025-03-22T11:15:12.000Z","dependencies_parsed_at":"2024-11-09T21:08:37.618Z","dependency_job_id":"cceb33e1-ad11-46ae-8f46-b4f298160883","html_url":"https://github.com/r-lib/sodium","commit_stats":{"total_commits":142,"total_committers":7,"mean_commits":"20.285714285714285","dds":0.04929577464788737,"last_synced_commit":"7dba77f125eb26109992d995fccb686a8c1cecc4"},"previous_names":["jeroen/sodium"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fsodium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fsodium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fsodium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fsodium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/sodium/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:06:08.069Z","updated_at":"2025-12-12T01:05:13.226Z","avatar_url":"https://github.com/r-lib.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# sodium\n\n\u003e A Modern and Easy-to-Use Crypto Library\n\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/sodium)](https://cran.r-project.org/package=sodium)\n[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/sodium)](https://cran.r-project.org/package=sodium)\n\nBindings to libsodium: a modern, easy-to-use software library for\nencryption, decryption, signatures, password hashing and more. Sodium uses\ncurve25519, a state-of-the-art Diffie-Hellman function by Daniel Bernstein,\nwhich has become very popular after it was discovered that the NSA had\nbackdoored Dual EC DRBG.\n\n## Documentation\n\nAbout the R package:\n\n - Vignette: [Introduction to Sodium for R](https://cran.r-project.org/web/packages/sodium/vignettes/intro.html)\n - Vignette: [How does cryptography work](https://cran.r-project.org/web/packages/sodium/vignettes/crypto101.html)\n\nOther resources:\n\n - [The Sodium crypto library (libsodium)](https://doc.libsodium.org/)\n\n\n## Hello World\n\n```r\n# Generate keypair:\nkey \u003c- keygen()\npub \u003c- pubkey(key)\n\n# Encrypt message with pubkey\nmsg \u003c- serialize(iris, NULL)\nciphertext \u003c- simple_encrypt(msg, pub)\n\n# Decrypt message with private key\nout \u003c- simple_decrypt(ciphertext, key)\n```\n\n\n\n## Installation\n\nBinary packages for __OS-X__ or __Windows__ can be installed directly from CRAN:\n\n```r\ninstall.packages(\"sodium\")\n```\n\nInstallation from source on Linux or OSX requires [`libsodium`](https://doc.libsodium.org/). On __Debian or Ubuntu__ install [libsodium-dev](https://packages.debian.org/testing/libsodium-dev):\n\n```\nsudo apt-get install -y libsodium-dev\n```\n\nOn __Fedora__ we need [libsodium-devel](https://src.fedoraproject.org/rpms/libsodium):\n\n```\nsudo yum install libsodium-devel\n````\n\nOn __CentOS / RHEL__ we install [libsodium-devel](https://src.fedoraproject.org/rpms/libsodium) via EPEL:\n\n```\nsudo yum install epel-release\nsudo yum install libsodium-devel\n```\n\nOn __OS-X__ use [libsodium](https://github.com/Homebrew/homebrew-core/blob/master/Formula/libsodium.rb) from Homebrew:\n\n```\nbrew install libsodium\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fsodium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Fsodium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fsodium/lists"}