MCPcopy Create free account
hub / github.com/assaultcube/AC / genpwdhash

Function genpwdhash

source/src/crypto.cpp:1537–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1535}
1536
1537const char *genpwdhash(const char *name, const char *pwd, int salt)
1538{
1539 static string temp;
1540 formatstring(temp)("%s %d %s %s %d", pwd, salt, name, pwd, iabs(PROTOCOL_VERSION));
1541 tiger::hashval hash;
1542 tiger::hash((uchar *)temp, (int)strlen(temp), hash);
1543 formatstring(temp)("%s %s %s", hashchunktoa(hash.chunks[0]), hashchunktoa(hash.chunks[1]), hashchunktoa(hash.chunks[2]));
1544 return temp;
1545}
1546
1547
1548

Callers 5

checkwhitelistFunction · 0.85
loopvMethod · 0.85
sendintroFunction · 0.85
processFunction · 0.85
setadminFunction · 0.85

Calls 3

iabsFunction · 0.85
hashFunction · 0.85
hashchunktoaFunction · 0.85

Tested by

no test coverage detected