pysrp icon indicating copy to clipboard operation
pysrp copied to clipboard

Python2 issue

Open LinusU opened this issue 6 years ago • 0 comments

Hello,

Just wanted you to know that on python2 bytes(2) returns the string "2", whereas in python3 it returns b"\x00\x00".

This makes the padding (inside H()) wrong in python2 which results in invalid values.

Discovered this while trying to make sure that pysrp and secure-remote-password are compatible (LinusU/secure-remote-password#13). Been ripping my hair out for the past few hours 😂

LinusU avatar May 23 '18 13:05 LinusU