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

@harmony-js/crypto

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/crypto - npm Package Compare versions

Comparing version 0.1.56 to 0.1.58

dist/index.cjs.js

5

dist/keystore.js

@@ -10,4 +10,3 @@ "use strict";

var aes_js_1 = tslib_1.__importDefault(require("aes-js"));
// import scrypt from 'scrypt.js';
var scrypt_shim_1 = tslib_1.__importDefault(require("scrypt-shim"));
var scrypt_js_1 = tslib_1.__importDefault(require("scrypt.js"));
var pbkdf2_1 = require("pbkdf2");

@@ -44,3 +43,3 @@ var uuid_1 = tslib_1.__importDefault(require("uuid"));

_b = params, n = _b.n, r = _b.r, p = _b.p, dklen = _b.dklen;
return [2 /*return*/, scrypt_shim_1.default(key, salt, n, r, p, dklen)];
return [2 /*return*/, scrypt_js_1.default(key, salt, n, r, p, dklen)];
}

@@ -47,0 +46,0 @@ throw new Error('Only pbkdf2 and scrypt are supported');

8

package.json
{
"name": "@harmony-js/crypto",
"version": "0.1.56",
"version": "0.1.58",
"description": "crypto libraries for harmony",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

"dependencies": {
"@harmony-js/utils": "0.1.56",
"@harmony-js/utils": "0.1.58",
"aes-js": "^3.1.2",

@@ -31,6 +31,6 @@ "bip39": "^2.5.0",

"pbkdf2": "^3.0.17",
"scrypt-shim": "github:web3-js/scrypt-shim",
"scrypt.js": "^0.3.0",
"uuid": "^3.3.2"
},
"gitHead": "8f8e17fdaed394af1c28cd133d6018bf48915a81"
"gitHead": "5eddd0feb2bfe92c36b194fe0a9ffe40f8173d6c"
}

@@ -7,4 +7,3 @@ /**

import aes from 'aes-js';
// import scrypt from 'scrypt.js';
import scrypt from 'scrypt-shim';
import scrypt from 'scrypt.js';
import { pbkdf2Sync } from 'pbkdf2';

@@ -11,0 +10,0 @@ import uuid from 'uuid';

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