Skip to content

Pou vs Pou (Authentication)

Daniel López Guimaraes edited this page Jul 23, 2023 · 1 revision

PVPHash

When validating data being transmitted, Pou vs Pou appends some text to the data and makes an MD5 of the result. The data appended varies depending if you are the host of a session or not.

The client hash is the following: MD5("p0v" + data + "s") and the host hash is the following: MD5("p0v" + data + "m")

def pvp_host_hash(data: str):
    payload = "p0v" + data + "m"
    hash = hashlib.md5(payload.encode("utf-8")).hexdigest()
    return hash
def pvp_client_hash(data: str):
    payload = "p0v" + data + "s"
    hash = hashlib.md5(payload.encode("utf-8")).hexdigest()
    return hash