Hi, I would like to know if it is possible and how to encrypt list.txt when patching so people can't see the files being patched, like how EFlyff and KFlyff have it. Thanks in advance for any responses given.
Printable View
Hi, I would like to know if it is possible and how to encrypt list.txt when patching so people can't see the files being patched, like how EFlyff and KFlyff have it. Thanks in advance for any responses given.
well, first you would have to create a program like titanium..
second, you make every line md5 hashed..
then you edit patch to decrypt the hash, so it reads the files it needs to patch (also source edits)
mm, I think that is it, good luck & have fun
Um, You can't decrypt MD5, so that's not gonna work. You'll have to find some other encryption method that can be decrypted.
But the process is correct. Encrypt each line in list.txt and decrypt it inside the patcher.
Also you don't NEED your own program like Titanium.. you can still use Titanium Patchlist Maker to create the list.txt, but you'd need a seperate program to run afterward to do the encryption. (Making your own program like Titanium could do both at once though.)
I said md5 since saying "hash" only, would probably make him ask, what is hash, how can I decrypt hash, what kind of hash is there..
so by giving him a proper name for a md5 hash, he would automaticly think, let's search for it, I know one of them already! DANG I KNOW I CAN DO THIS!
How was my explanation any different from yours really?
because if he goes and google searches "how to md5 hash something" he's gonna be able to encrypt something without being able to decrypt it. If he does that, he'll also end up at the "DANG I KNOW I CAN DO THIS!" conclusion that you already pointed out.
My explanation was different cause I said MD5 encryption CAN'T be used to do this, but a different type of encryption can be. I also stated you don't need to make your own Titanium. A secondary program to encrypt the list.txt after it's made would have the same end result.
If I were you, I'd study up how encryptions work and then make my own algorithm.
You can go look into the current patcher source, see where it reads, add something like
It is pretty basic but it gets the job done.Code:for(int i = 0; i < lenArr/*length of the file, might be CFile::GetLength*/; i++)
{
arr[i] = arr[i] ^ 0xFE;
}
Also Xakzi don't post about shit that you don't know about, giving false info is worse than giving no info.
(also you can wikipedia if you want to be a seem smart: Checksum - Wikipedia, the free encyclopedia, Cryptographic hash function - Wikipedia, the free encyclopedia)
You should also make sure that patchlog isn't written. Also you don't need to write any programs, just encrypt the output afterwards.Quote:
The ideal cryptographic hash function has four main or significant properties:
it is easy to compute the hash value for any given message
it is infeasible to generate a message that has a given hash
it is infeasible to modify a message without changing the hash
it is infeasible to find two different messages with the same hash