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:
parent
6e6069a088
commit
d63ed627d1
13
README.md
13
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');
|
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) {
|
var srp6a_create_user = function(I, P, callback) {
|
||||||
srp6a.genKey(32, function(error, salt) {
|
srp6a.genKey(32, function(error, salt) {
|
||||||
if(error) {
|
if(error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user