
Originally Posted by
sladlejrhfpq
encrypting and decrypting should also work
my mistake, didn't read the code until the end ... I just saw this part:
Code:
if (buffer[0] == 0xE2 && buffer[1] == 0xB0) Encrypted = true;
byte buff;
for (int i = 0; i < fileLen; i++)
{
buff = (byte)(Hash_Table_1[key % 0xA7] - Hash_Table_2[key % 0x1EF]);
++key;
if (Encrypted) buffer[i] += buff;
else buffer[i] -= buff;
}
It will going to re-encrypt the file again if it check that first two bytes are not encrypted ...
next time, i will check before posting xD