Registry / crypto / rbnacl-libsodium

rbnacl-libsodium

JSON →
library1.0.16rbrubygemsunverified

RbNaCl with bundled libsodium for cryptographic operations.

gem install rbnacl-libsodium
INSTALL
IMPORT
SIG · RBNACL-LIBSODIUM
R
rbnacl-libsodium
cryptorubyv1.0.16
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/libsodium'

Encrypts and decrypts a message using SecretBox.

require 'rbnacl/libsodium' key = RbNaCl::Random.random_bytes(RbNaCl::SecretBox.key_bytes) box = RbNaCl::SecretBox.new(key) ct = box.encrypt('secret message') pt = box.decrypt(ct) puts pt
Debug
Known issues
gotchaBundled libsodium may conflict with system libsodium.
fix
Ensure no other libsodium is loaded or use rbnacl without bundled version.
affects: >= 1.0.0
Upgrade
Version history
1.0.16latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

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