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

srp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srp - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

test/test_picl_vectors.js

3

lib/srp.js

@@ -232,8 +232,9 @@ const crypto = require('crypto'),

alg = alg || ALG;
var S_pad = new Buffer(pad(S, N));
return bigint(
crypto
.createHash(alg)
.update(S.toBuffer())
.update(S_pad)
.digest('hex'), 16);
};
{
"name": "srp",
"description": "Secure Remote Password (SRP)",
"version": "0.0.3",
"version": "0.0.4",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -20,8 +20,2 @@ [![build status](https://secure.travis-ci.org/jedp/node-srp.png)](http://travis-ci.org/jedp/node-srp)

Additionally, I would like the API to provide:
- A way to bind messages of intent to the session key in a way that
preserves integrity, confidentiality, and protects against replay
attacks.
##Prerequisites

@@ -44,4 +38,5 @@

Tests include the [RFC 5054 test
vectors](https://tools.ietf.org/html/rfc5054#appendix-B).
Tests include vectors from:
- [RFC 5054, Appendix B](https://tools.ietf.org/html/rfc5054#appendix-B).
- [Mozilla Identity Attached Services](https://wiki.mozilla.org/Identity/AttachedServices/KeyServerProtocol)

@@ -48,0 +43,0 @@ ##Description of the Protocol

@@ -62,3 +62,2 @@ const vows = require('vows'),

assert(k_expected.eq(srp.getk(N, g, 'sha1')));
},

@@ -65,0 +64,0 @@

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