deu
competition

Text-Übungen

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

Erstellt am Nov 28th 2021, 02:50 von VHngDimTrinh


0


Bewertung

57 Wörter
13 Abgeschlossen
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;
}

speichert Ergebnis/ lädt Statistiken...