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

@stablelib/nacl

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stablelib/nacl - npm Package Compare versions

Comparing version 0.10.5 to 1.0.0

3

lib/nacl.d.ts

@@ -0,2 +1,5 @@

/**
* Package nacl implements NaCl (Networking and Cryptography library) cryptography.
*/
export * from "./box";
export * from "./secretbox";

@@ -8,4 +8,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
* Package nacl implements NaCl (Networking and Cryptography library) cryptography.
*/
__export(require("./box"));
__export(require("./secretbox"));
//# sourceMappingURL=nacl.js.map

2

lib/secretbox.d.ts
import { RandomSource } from "@stablelib/random";
export declare function secretBox(key: Uint8Array, nonce: Uint8Array, data: Uint8Array): Uint8Array;
export declare function openSecretBox(key: Uint8Array, nonce: Uint8Array, box: Uint8Array): Uint8Array | null;
/** Generates 32-byte random secret key. */
/** Generates a 32-byte random secret key. */
export declare function generateKey(prng?: RandomSource): Uint8Array;

@@ -95,3 +95,3 @@ "use strict";

exports.openSecretBox = openSecretBox;
/** Generates 32-byte random secret key. */
/** Generates a 32-byte random secret key. */
function generateKey(prng) {

@@ -98,0 +98,0 @@ return random_1.randomBytes(32, prng);

// Copyright (C) 2016 Dmitry Chestnykh
// MIT License. See LICENSE file for details.
/**
* Package nacl implements NaCl (Networking and Cryptography library) cryptography.
*/
export * from "./box";
export * from "./secretbox";
{
"name": "@stablelib/nacl",
"version": "0.10.5",
"version": "1.0.0",
"description": "Implementation of secretbox and box from NaCl (Networking and Cryptography Library)",

@@ -18,13 +18,13 @@ "main": "./lib/nacl.js",

"dependencies": {
"@stablelib/poly1305": "^0.10.2",
"@stablelib/random": "^0.7.4",
"@stablelib/wipe": "^0.5.0",
"@stablelib/x25519": "^0.7.5",
"@stablelib/xsalsa20": "^0.7.2"
"@stablelib/poly1305": "^1.0.0",
"@stablelib/random": "^1.0.0",
"@stablelib/wipe": "^1.0.0",
"@stablelib/x25519": "^1.0.0",
"@stablelib/xsalsa20": "^1.0.0"
},
"devDependencies": {
"@stablelib/benchmark": "^0.5.0",
"@stablelib/hex": "^0.5.0"
"@stablelib/benchmark": "^1.0.0",
"@stablelib/hex": "^1.0.0"
},
"gitHead": "bfc2e6b7c9c3f31c7bb3610b8a0c09d3ef3613ca"
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6"
}

@@ -61,3 +61,2 @@ // Copyright (C) 2016 Dmitry Chestnykh

export function openSecretBox(key: Uint8Array, nonce: Uint8Array, box: Uint8Array): Uint8Array | null {

@@ -122,5 +121,5 @@ if (nonce.length !== 24) {

/** Generates 32-byte random secret key. */
/** Generates a 32-byte random secret key. */
export function generateKey(prng?: RandomSource): Uint8Array {
return randomBytes(32, prng);
}

Sorry, the diff of this file is not supported yet

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