Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libsodium-wrappers

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libsodium-wrappers - npm Package Compare versions

Comparing version 0.2.12 to 0.3.0

4

package.json
{
"name": "libsodium-wrappers",
"version": "0.2.12",
"version": "0.3.0",
"description": "The Sodium cryptographic library compiled to pure JavaScript (wrappers)",

@@ -12,3 +12,3 @@ "main": "dist/modules/libsodium-wrappers.js",

"dependencies": {
"libsodium": "0.2.12"
"libsodium": "0.3.0"
},

@@ -15,0 +15,0 @@ "keywords": [

@@ -10,3 +10,3 @@ # libsodium.js

The complete library weights 151 Kb (minified, gzipped) and can run in
The complete library weights 149 Kb (minified, gzipped) and can run in
a web browser as well as server-side.

@@ -29,3 +29,3 @@

Ready-to-use files based on libsodium 1.0.6 can be directly copied to your
Ready-to-use files based on libsodium 1.0.10 can be directly copied to your
project.

@@ -43,2 +43,5 @@

Alternatively, for better performance and to avoid including a local copy,
[libsodium.js is available on cdnjs](https://cdnjs.com/libraries/libsodium-wrappers).
Including the `sodium.min.js` file will add a `sodium` object to the

@@ -79,16 +82,16 @@ global namespace.

* [`crypto_aead`](http://doc.libsodium.org/secret-key_cryptography/aead.html) (ChaCha20-Poly1305)
* [`crypto_auth`](http://doc.libsodium.org/advanced/hmac-sha2.html) (SHA256, SHA512, and the default crypto_auth with SHA512/256)
* [`crypto_box`](http://doc.libsodium.org/public-key_cryptography/authenticated_encryption.html)
* [`crypto_box_seal`](http://doc.libsodium.org/public-key_cryptography/sealed_boxes.html)
* [`crypto_generichash`](http://doc.libsodium.org/hashing/generic_hashing.html) (Blake2b)
* [`crypto_hash`](http://doc.libsodium.org/advanced/sha-2_hash_function.html) (SHA512/256)
* [`crypto_onetimeauth`](http://doc.libsodium.org/advanced/poly1305.html) (Poly1305)
* [`crypto_pwhash`](http://doc.libsodium.org/password_hashing/README.html) (scrypt)
* [`crypto_scalarmult`](http://doc.libsodium.org/advanced/scalar_multiplication.html) (Curve25519)
* [`crypto_secretbox`](http://doc.libsodium.org/secret-key_cryptography/authenticated_encryption.html)
* [`crypto_shorthash`](http://doc.libsodium.org/hashing/short-input_hashing.html) (SipHash)
* [`crypto_sign`](http://doc.libsodium.org/public-key_cryptography/public-key_signatures.html) (Ed25519)
* [Ed25519->Curve25519 conversion](http://doc.libsodium.org/advanced/ed25519-curve25519.html)
* [`randombytes`](http://doc.libsodium.org/generating_random_data/README.html)
* [`crypto_aead`](https://download.libsodium.org/doc/secret-key_cryptography/aead.html) (ChaCha20-Poly1305)
* [`crypto_auth`](https://download.libsodium.org/doc/secret-key_cryptography/secret-key_authentication.html) (HMAC-SHA-512-256)
* [`crypto_box`](https://doc.libsodium.org/public-key_cryptography/authenticated_encryption.html)
* [`crypto_box_seal`](https://doc.libsodium.org/public-key_cryptography/sealed_boxes.html)
* [`crypto_generichash`](https://doc.libsodium.org/hashing/generic_hashing.html) (Blake2b)
* [`crypto_hash`](https://doc.libsodium.org/advanced/sha-2_hash_function.html) (SHA-512-256)
* [`crypto_onetimeauth`](https://doc.libsodium.org/advanced/poly1305.html) (Poly1305)
* [`crypto_pwhash`](https://download.libsodium.org/doc/password_hashing/index.html) (Argon2)
* [`crypto_scalarmult`](https://doc.libsodium.org/advanced/scalar_multiplication.html) (Curve25519)
* [`crypto_secretbox`](https://doc.libsodium.org/secret-key_cryptography/authenticated_encryption.html)
* [`crypto_shorthash`](https://doc.libsodium.org/hashing/short-input_hashing.html) (SipHash)
* [`crypto_sign`](https://doc.libsodium.org/public-key_cryptography/public-key_signatures.html) (Ed25519)
* [Ed25519->Curve25519 conversion](https://doc.libsodium.org/advanced/ed25519-curve25519.html)
* [`randombytes`](https://doc.libsodium.org/generating_random_data/README.html)

@@ -106,2 +109,5 @@ ## Additional helpers

little-endian `Uint8Array` - typically to increment nonces)
* `add()` (adds two arbitrary-long numbers stored as little-endian
`Uint8Array` vectors)
* `is_zero()` (constant-time, checks `Uint8Array` objects for all zeros)

@@ -149,2 +155,16 @@ ## API

### Standard vs Sumo version
The standard version (in the `dist/browsers` and `dist/modules`
directories) contains the high-level functions, and is the recommended
one for most projects.
Alternatively, the "sumo" version, available in the
`dist/browsers-sumo` and `dist/modules-sumo` directories contains all
the symbols from the original library. This includes undocumented,
untested, deprecated, low-level and easy to misuse functions.
It is slightly larger than the standard version, and should be used
only if you really need the extra symbols it provides.
### Compilation

@@ -162,4 +182,4 @@

* make
* mocha (`npm install -g mocha`)
* zopfli (`npm install -g node-zopfli`)
* uglifyjs (`npm install -g uglifyjs`)

@@ -200,2 +220,2 @@ Running `make` will clone libsodium, build it, test it, build the

This wrapper is distributed under the
[ISC License](http://en.wikipedia.org/wiki/ISC_license).
[ISC License](https://en.wikipedia.org/wiki/ISC_license).

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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