added string obfuscation example

This commit is contained in:
Aéna Aria 2026-02-12 10:54:33 +01:00
parent 3c98c7fddf
commit 7c2c089f60

View file

@ -2,12 +2,22 @@
//
#include "stdafx.h"
#include <cstdlib>
#include <stdio.h>
int _tmain(int argc, _TCHAR* argv[])
{
printf("hello world");
char* a = "bdgs";
char* b = "\x00\x01\x02\x03";
char* c = (char*) malloc(sizeof(char)*5);
for(int i = 0; i < 4; i ++){
c[i] = a[i] ^ b[i];
// printf("%x",c[i]);
}
c[4] = '\0';
// printf("The string is:");
printf("%s\n",c);
while(1);
return 0;
}