eng
competition

Text Practice Mode

C# Tập gõ lập trình

created Nov 28th 2021, 02:50 by VHngDimTrinh


0


Rating

57 words
13 completed
00:00
public static byte[] encryptArray3(byte[] pkm){    if (pkm.Length != SIZE_3PARTY && pkm.Length != SIZE_3STORED)        return null;    uint PID = BitConverter.ToUInt32(pkm, 0);    uint OID = BitConverter.ToUInt32(pkm, 4);    uint seed = PID ^ OID;    byte[] ekm = shuffleArray3(pkm, blockPositionInvert[PID%24]);    byte[] xorkey = BitConverter.GetBytes(seed);
    for (int i = 32; i < 80; i++)
        ekm[i] ^= xorkey[i % 4];
    return ekm;
}

saving score / loading statistics ...