Update hashgen.py

Added salting to encryption