This is a Python program that generates a wide variety of password hashes. Sensible use of exceptions handle most error conditions. Can be run as a script from the MacOS or Linux command line, e.g. chmod +x hashpw ./hashpw --help Run using a Python interpreter on other platforms. c.f. mkpasswd