Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Server password and token hashing #9

@vaspatrik

Description

@vaspatrik

Password and token needs to be hashed.
A recommended implementation would be: Cpp sha256

Password hash recomanded way:
ChatHandler.cpp

user.setPassword(sha256(user.getPassword() + GlobalClass::SALT))

Token hashing way:
ChatHandler.cpp

token = sha256(GlobalClass::converter(rand() + id) + "token");

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions