simbo1905 / thinbus-srp-npm

This package provides a Javascript Secure Remote Password SRP SRP6a implementation for web browsers to perform a zero-knowledge proof-of-password to a web server.
101 stars 14 forks source link

Browser version does not work because of undefined SRP6JavascriptClientSessionSHA256 #17

Open beastybeast opened 2 months ago

beastybeast commented 2 months ago

Upgraded from 1.5.2 to 1.6.0 (javascript) to use directly in the browser and the browser complain about missing definition of SRP6JavascriptClientSessionSHA256 and I can see that the function is wrapped into some node.js code.

I used the npm and browserify path as described (why it is not possible for many libraries just to download the needed browser file makes my head spin)

It looks as if at the end of the file that the srpClientFactory is never called and because of this SRP6JavascriptClientSessionSHA256 is never defined.

I can also see that this SRP6JavascriptClientSessionSHA256 function is defined directly in the old version.

NB: "module.exports = function srpClientFactory (N_base10, g_base10, k_base16)"

/Benny