LinusU / secure-remote-password

A modern SRP implementation for Node.js and Web Browsers
101 stars 22 forks source link

Custom Parameter Large Safe Prime #28

Open afshawnlotfi opened 3 years ago

afshawnlotfi commented 3 years ago

Would it be possible to make the largeSafePrime param here updatable in cases where people want to use their own custom key generated by something like OpenSSL. I'd imagine the quickest fix would be making that const a let and making the input be exportable but thought I would bring this up.

space55 commented 3 years ago

Is there a solution to this? I have the same requirement, but this issue was closed without an answer 😢

afshawnlotfi commented 3 years ago

I reopened but don't know if the author is going to reply as I sent this over a year ago. I ended up just forking and manually changing the key with something I generated in OpenSSL using something like openssl dhparam -text 1024 like they use here: https://en.wikipedia.org/wiki/Secure_Remote_Password_protocol. Hope that helps