cocagne / pysrp

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

Fixes #28 calculate_x() throws TypeError exception #29

Closed jonasao closed 6 years ago

jonasao commented 6 years ago

Converted both username and password arguments to byte arrays upon contatenating them to the string sent to the digest() method of the hash_class.

jonasao commented 6 years ago

Suggestion: Update the unit-tests in order to catch these type of exceptions.