A
Anil Gupte
I am trying to learn C++ and one sample written by someone for me contains
this:
void DecryptStream(BYTE* buf, ULONG size)
{
for (ULONG i=0; i<size; i++)
{
buf ^= 1;
}
}
Can some one tell me what this is doing? Especially ^ - is that an XOR?
Thanx,
this:
void DecryptStream(BYTE* buf, ULONG size)
{
for (ULONG i=0; i<size; i++)
{
buf ^= 1;
}
}
Can some one tell me what this is doing? Especially ^ - is that an XOR?
Thanx,