Tweaks for tools/passhash.py

Hello,

this tiny branch fixes two bugs in tools/passhash.py and adds a simple argparse around it so that it can be used standalone.

Cheers,
 Michael

P.S. I do really like the PassHash extension, awesome work!