From d63ed627d1e031deecb5cf1db5902d117ecff5e3 Mon Sep 17 00:00:00 2001 From: Zarmack Tanen Date: Mon, 7 Sep 2015 16:33:11 +0200 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c7296b..4bce678 100644 --- a/README.md +++ b/README.md @@ -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) {