summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/srp.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/srp.js b/lib/srp.js
index 06c9d05..0f6889b 100644
--- a/lib/srp.js
+++ b/lib/srp.js
@@ -42,6 +42,11 @@ function SRP()
return I;
};
+ // some 16 byte random number
+ this.salt = function() {
+ return new BigInteger(64, rng).toString(16);
+ }
+
// Returns the XMLHttpRequest object
this.getxhr = function()
{