Registry / crypto / rbnacl

rbnacl

JSON →
library7.1.2rbrubygemsunverified

The Networking and Cryptography (NaCl) library provides a high-level toolkit for building cryptographic systems and protocols.

gem install rbnacl
INSTALL
IMPORT
SIG · RBNACL
R
rbnacl
cryptorubyv7.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RbNaCl
require 'rbnacl'

Encrypt and decrypt a message using a secret key

require 'rbnacl' key = RbNaCl::Random.random_bytes(RbNaCl::SecretBox.key_bytes) box = RbNaCl::SecretBox.new(key) ct = box.encrypt('secret message') puts box.decrypt(ct)
Debug
Known issues
gotchaRequires libsodium library to be installed on the system.
fix
Install libsodium via your package manager (e.g., apt-get install libsodium-dev).
affects: >= 0
Upgrade
Version history
7.1.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Amazon
1
Resources
rbnacl — gem install rbnacl · libregistry