Open under-score opened 2 years ago
First --> thank you for trying out this thing 🙇♂️
Second -->
It should definitely work with just a PIL image and nothing else. I guess in newer Pythons the hash object doesn't work on strings. But rather on bytes that contain the encoded form of the string.
For example:
> 'IMAGE'.encode('utf-8')
b'IMAGE'
So the simple fix would be to update 'IMAGE'
to 'IMAGE'.encode('utf-8')
. But there's probably more that is broken.
Should be a simple fix, but can't promise I get around to it today. I'll try this week and keep you posted.
thank so much for the quick response - not urgent as I am working more with ssdeep (although a comparison with sdhash would be nice). Seems there are even more issues while I am late to these Python games to fix it by myself.
Using the sample code with a probably newer Python version we get
tried to pass a base64 encoded string instead of a PIL image but then I get other errors...