Here is a models.py file consists of a User table as well as functions defined in order to generate and check password hash.
Models.py