(08-12-2025, 09:08 PM)tha_tux Wrote: One more question: when running the default Python example (from master, not the changed example from this page) in a Python debugger (or as Python file) the salts are not populated. `calc_hash()` is called but context is empty (as it's not run from hashcat).
```
$ echo -n 'hashcat' | python3 Python/generic_hash_mp.py
578062bebe5d6464de429098aea3b21261a2bd366acc8850066032db1c4d3c67
```
Where I'd expect `33522b0fd9812aa68586f66dba7c17a8ce64344137f9c7d8b11f32a6921c22de*9348746780603343` as output.
Not sure how to proceed, writing a Python function that interprets a hashes.txt file doesn't make too much sense.
Furthermore am I correct in thinking https://github.com/hashcat/hashcat/blob/...lain=1#L98 is out of date as I can't find `def calc_hash(ctx, password, salt_id, is_selftest):` anywhere, I expect it should be `def calc_hash(password: bytes, salt: dict) -> str:`
Again sorry, it's described here in the documentation, that there is no salt an you need to provide it yourself:
Quote:"Note that you probably want to inline the correct salt value, see the main section in the code. TBD: Add some sample"https://github.com/hashcat/hashcat/blob/...ain=1#L257