And more importantly, how are you going to unencrypt it?

Presumably you will also unencrypt it with KiXtart, which as it is easy to read and understand will render your encryption pretty useless.

You can write a simple XOR encryptor in C in a couple of lines. Or less.

Why are you encrypting the file and how do you intend to use it?