secure-remote-password / srp.net

SRP-6a protocol implementation for .NET Standard 1.6+ and .NET Framework 3.5+

Home Page:https://www.nuget.org/packages/srp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expected string to be an even number of characters

yallie opened this issue · comments

Sometimes the Javascript client reports this error:

RangeError: Expected string to be an even number of characters
    at hexToArrayBuffer (:3000/static/js/1.chunk.js:59422)
    at :3000/static/js/1.chunk.js:168052
    at Array.map (<anonymous>)
    at sha256 (:3000/static/js/1.chunk.js:168050)
    at client.js.exports.deriveSession (:3000/static/js/1.chunk.js:168160)
...

Looks like C# server can return an unpadded integer somewhere.