New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@devtomio/sodium

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devtomio/sodium

Libsodium for Node.js

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
decreased by-4.95%
Maintainers
1
Weekly downloads
 
Created
Source

@devtomio/sodium

Libsodium for Node.js

GitHub Continuous Delivery Continuous Integration npm

Packages

npm npm npm npm npm npm npm npm npm npm

Features

  • Fully ready for TypeScript!
  • Includes ESM ready entrypoint
  • Easy to use
  • Has the same API as libsodium
  • Faster than similar libraries (see benchmarks)
  • Powered by Rust

Usage

For complete usages, please dive into our documentation

Basic usage

Generating a keypair

import * as sodium from '@devtomio/sodium';

const { public_key, secret_key } = sodium.crypto_box_keypair();

Benchmarks

$ yarn bench

Running "keypair generation" suite...
Progress: 100%

  libsodium-wrappers:
    5 211 ops/s, ±4.63%    | 73.06% slower

  tweetnacl:
    1 100 ops/s, ±4.69%    | slowest, 94.31% slower

  chloride:
    13 909 ops/s, ±10.91%   | 28.1% slower

  @devtomio/sodium:
    19 344 ops/s, ±3.12%   | fastest

Finished 4 cases!
  Fastest: @devtomio/sodium
  Slowest: tweetnacl

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Tomio

💻 📖 💡 🤔 🚇 🚧 📦

WhiteSource Renovate

🚧

renovate[bot]

🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

License

This software is released under the MIT License, see LICENSE.

FOSSA Status

Keywords

FAQs

Package last updated on 29 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc