From 082f859bbdaedf4f03eb85aea9b8f88ffda2fe6d Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 19 Nov 2012 18:11:20 +0100 Subject: further cleanup --- src/srp_session.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/srp_session.js') diff --git a/src/srp_session.js b/src/srp_session.js index 7f1232f..b278993 100644 --- a/src/srp_session.js +++ b/src/srp_session.js @@ -35,6 +35,22 @@ srp.Session = function(login, password) { return Astr; }; + this.signup = function() { + var salt = this.getSalt(); + return { + login: this.getI(), + password_salt: salt, + password_verifier: this.getV(salt).toString(16) + }; + }; + + this.handshake = function() { + return { + login: this.getI(), + A: this.getAstr() + }; + }; + this.getAstr = function() { return Astr; } -- cgit v1.2.3