Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRP - Secure Remote Protocol

JavaScript SRP client and server implementation based on node-srp.

I replaced bignum with jsbn so it's easier to build for browser environment.

Motivation

I want something that nicely works (on client and server side) and is up to date :)

Installation

Run npm i kkapron/srp

or git clone this repo and run npm i inside it to install dependencies.

Usage

API is almost the same as described in node-srp README. The main difference in the main module is that I renamed genKey() to generateRandomKey().

I also added few helper functions:

  • printBuffer(buf, [label]) - prints given buffer on console in formatted hex
  • printBN(num, [label]) - prints given BigInteger on console in formatted hex
  • formatHex(s) - returns given hex string in pretty format

Testing

Run npm test

Licence

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages