Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
libsodium-neon
Advanced tools
This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.
You can find the published source code at github.com/wireapp.
For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.
const libsodium = require('libsodium-neon');
const keyPair = libsodium.crypto_sign_keypair();
// keyPair = {publicKey: Uint8Array [118, 200, 242, 168, 123, 173, 221, 232, ...]}
Just install the needed packages for this project by running:
npm install
Afterwards you can build the project:
npm run build
To test the native module, run:
npm test
System specs: macOS 10.12 @ 2.6 GHz Intel Core i7, 16 GB RAM
Function | ops/sec | ops/sec | times faster |
---|---|---|---|
libsodium.js | libsodium-neon | ||
crypto_auth_hmacsha256 | 51,156 | 55,562 | 1.09 |
crypto_scalarmult | 86 | 6,129 | 70.80 |
crypto_sign_detached | 251 | 6,277 | 25.01 |
crypto_sign_ed25519_pk_to_curve25519 | 596 | 21,030 | 35.29 |
crypto_sign_ed25519_sk_to_curve25519 | 13,390 | 90,650 | 6.77 |
crypto_sign_keypair | 276 | 6,602 | 23.92 |
Average | 10,959 | 31,042 | 2.83 |
FAQs
Node.js bindings to rust_sodium.
The npm package libsodium-neon receives a total of 1 weekly downloads. As such, libsodium-neon popularity was classified as not popular.
We found that libsodium-neon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.