diff options
author | Azul <azul@leap.se> | 2012-07-20 17:07:48 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-07-20 17:07:48 +0200 |
commit | 0da31f678580649415cb0487c830f21d7e163253 (patch) | |
tree | 503dd57fd2471f29a2379c192f89277eb9fc2331 | |
parent | 8fa0825e28828a4bd1c28b5e467578498ba54b43 (diff) |
expose function to create salt
-rw-r--r-- | lib/srp.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() { |