python-rsa icon indicating copy to clipboard operation
python-rsa copied to clipboard

rsa.verify returns the the name of the used hash rather than a boolean

Open carlinmack opened this issue 4 years ago • 2 comments

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.

carlinmack avatar Nov 06 '19 04:11 carlinmack

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

carlinmack avatar Nov 06 '19 04:11 carlinmack

Thanks for pointing this out!

sybrenstuvel avatar Nov 06 '19 10:11 sybrenstuvel

This issue has been addressed:

  1. The documentation was updated to reflect the correct return type/value of rsa.verify
  2. The examples work out of the box since the message is now encode()ed

myheroyuki avatar Dec 15 '23 13:12 myheroyuki