Closed alexrp closed 4 years ago
Hello @alexrp,
What's the proposed API? Something like this?
srpParameters.IsValidSalt(salt);
srpParameters.IsValidVerifier(verifier);
That looks reasonable.
Here you are: https://www.nuget.org/packages/srp/1.0.5
if (param.IsValidSalt(salt) && param.IsValidVerifier(verifier))
{
// Save to DB...
}
Right now, I have code looking like the following when processing sign-ups on the server:
It would be convenient if the library exposed methods to do this kind of validation.