1
0
mirror of https://github.com/danog/fast-srp.git synced 2024-11-26 20:04:49 +01:00

Update README.md

This commit is contained in:
Zarmack Tanen 2015-09-07 16:33:11 +02:00
parent 6e6069a088
commit d63ed627d1

View File

@ -13,8 +13,17 @@ node-srp uses [bignum](https://github.com/justmoon/node-bignum) to handle the bi
var srp6a = require('fast-srp');
//
// I:
/**
* Computes the verifier of a user. Only needed to add the user to the auth system.
*
* I: (string) Username to compute verifier
* P: (string) Password
* callback: (function) Callback function with two params; error, verifier
*
* returns: verifier (Buffer)
*
*/
var srp6a_create_user = function(I, P, callback) {
srp6a.genKey(32, function(error, salt) {
if(error) {