Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@cubbit/enigma

Package Overview
Dependencies
24
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.3.0

common/x25519.d.ts

0

common/utils/base_x.d.ts

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ declare const defaults: {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import {Duplex, Transform} from 'stream';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export * from './modules/Random';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare class DiffieHellman {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

2

node/modules/X25519.js

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

const AES_1 = require("./AES");
const X25519_key_exchange = require('js-x25519');
const X25519_key_exchange = require('../../common/x25519.js');
class X25519 {

@@ -18,0 +18,0 @@ init(options) {

{
"name": "@cubbit/enigma",
"version": "1.2.2",
"version": "1.3.0",
"description": "A fast, native, cryptographic engine for the web",

@@ -38,3 +38,2 @@ "main": "index.js",

"fs-extra": "^9.0.1",
"js-x25519": "git+https://github.com/CryptoEsel/js-x25519.git",
"node-addon-api": "^3.0.2",

@@ -41,0 +40,0 @@ "pem-jwk": "^2.0.0",

@@ -0,0 +0,0 @@ # enigma [![Build Status](https://travis-ci.org/cubbit/enigma.svg?branch=master)](https://travis-ci.org/cubbit/enigma)

@@ -64,2 +64,3 @@ "use strict";

case 'arm':
case 'armv7':
env.OPENSSL_COMPILER = 'linux-generic32';

@@ -66,0 +67,0 @@ break;

@@ -31,3 +31,3 @@ 'use strict';

{
if(process.env.CI)
if(process.env.ENIGMA_FORCE_BUILD)
{

@@ -78,2 +78,28 @@ if(_build())

module.exports = {install};
function source()
{
return new Promise((resolve, reject) =>
{
const url = `https://raw.githubusercontent.com/CryptoEsel/js-x25519/master/lib/x25519.js.min.js`;
https.get(url, (response) =>
{
if(response.statusCode === 200)
{
const common_path = path.resolve(module_path, 'src', 'common');
const file = path.resolve(common_path, 'x25519.js');
fs.ensureDirSync(common_path);
const stream = fs.createWriteStream(file)
stream.on('close', resolve);
stream.on('error', reject);
response.pipe(stream);
}
else
throw new Error('Cannot download source dependencies');
});
});
}
module.exports = {install, source};

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export * from './modules/Random';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

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

const AES_1 = require("./AES");
const X25519_key_exchange = require('js-x25519');
const X25519_key_exchange = require('../../common/x25519.js');
class X25519 {

@@ -18,0 +18,0 @@ init(options) {

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc