Hashing utility functions for cookie and user passwords.
Ignore pycharm
Fixed some bugs.
Cookie setting and validation works.