All pastes #256964 Raw Edit

NightQuest

public cpp v1 · immutable
#256964 ·published 2006-11-24 21:11 UTC
rendered paste body
CString enc(CString X){	X.MakeUpper();	int I = 0;	CString T;		char s2[1024];	strcpy(s2,X);	char key[]={'H','T','S','P','n','z','j','0','0'};	for(int i = 0, y = 0; i <= strlen(s2); ) {		for(int o = 0; o <= 3; o++) {			if(s2[i] != NULL) s2[i] ^= key[y];			i++;		}		y++;		if(key[y] == NULL) y = 0;	}	T=s2;	return T;}