Added php library functions for session and password hashing