cocagne / pysrp

Python implementation of the Secure Remote Password protocol (SRP)
MIT License
113 stars 42 forks source link

Python2 issue #37

Closed LinusU closed 2 weeks ago

LinusU commented 6 years ago

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 😂

cocagne commented 2 weeks ago

Python2 support has been dropped. Thanks for the bug report.