MCPcopy Create free account
hub / github.com/doldecomp/mkdd / crypt

Method crypt

src/Osako/password.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void Password::crypt(u16 rnd)
106{
107 int hash = rnd;
108 for (u32 i = 0; i < 8; i++)
109 {
110 mPWTable.packed[i] ^= (u8)((u32)hash >> 8);
111 hash = (hash * 0x40d583d + 1) % 100000000;
112 }
113}
114
115void Password::encode()
116{

Callers 2

setCheckDataSubMethod · 0.45
checkDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected