### Javascript Client for the Secure Remote Protocol (SRP) _**Warning**: this is an alpha release and is not ready for production use. Peer review is appreciated._ This library implements a Javascript client for the SRP protocol. The client aims to be compatible with SRP revision 6A, as defined in [RFC 5054](http://tools.ietf.org/html/rfc5054) ("Using the Secure Remote Password (SRP) Protocol for TLS Authentication"). It is released under the MPL. The code is directly based on Tom Wu's [Javascript SRP demo](http://srp.stanford.edu/demo/demo.html), which is released under the [SRP license](http://srp.stanford.edu/license.txt). ### Testing This library is tested with Jasmine using the [official test vectors](http://tools.ietf.org/html/rfc5054#appendix-B) from the SRP specification. The specs can be run by opening `SpecRunner.html` in your browser. ### Usage **Configuration** As shown in the examples below, this library accepts 1024, 1536, 2048, 4096, 6144 and 8192-bit group parameters. The default is 1024 bits. **Registration Example** ```html ``` **Authentication Example** ```html ``` ### Further Reading - RFC 2945 - The SRP Authentication and Key Exchange System - RFC 5054 - Using the Secure Remote Password (SRP) Protocol for TLS Authentication ### License This library is released under the MPL.