If I create a file makehash.py with the following lines, I can run it in the terminal and get a hex hash.
#!/usr/bin/python3 import hashlib myhash = hashlib.pbkdf2_hmac('sha256',password="sw0rdf!sh".encode(),salt="NaCl".encode(),iterations=100000).hex() print(myhash)
When I have the file up in geany and I press F5 or click the gear to run it from the IDE, I get this error:
Traceback (most recent call last): File "geany_hashlib_bug.py", line 4, in myhash = hashlib.pbkdf2_hmac('sha256',password="sw0rdf!sh".encode(),salt="NaCl".encode(),iterations=100000).hex() AttributeError: 'str' object has no attribute 'hex'
(program exited with code: 1)
Press return to continue
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.