python-rsa
python-rsa copied to clipboard
rsa.verify returns the the name of the used hash rather than a boolean
Hi,
The documentation describes that it returns a boolean however the implementation actually returns a Verification Error or the name of the hash. I'd fix this but I'm not sure if the documentation can be edited.
Additionally, and a separate issue, the examples in the documentation no longer work out of the box as the message needs to be .encode()
ed
Thanks for pointing this out!
This issue has been addressed:
- The documentation was updated to reflect the correct return type/value of
rsa.verify
- The examples work out of the box since the message is now
encode()
ed