All pastes #906612 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-16 20:42 UTC
rendered paste body
Before:

public Encript(string[])
{
	for(new x=0; x<strlen(string); x++)
	  {
		  string[x] += (3^x) * (x % 15);

		  if(string[x]>(0xff))
		  {
			  string[x] -= 256;
		  }
	  }
	return 1;
}

public Decript(string[])
{
	if (gdebug){printf("DEBUG string=%s",string);}
	for(new x=0; x<strlen(string); x++)
	  {
		  string[x] -= (3^x) * (x % 15);
		  if(string[x]>(0xff))
		  {
			  string[x] -= 256;
		  }
	  }
	if (gdebug){printf("DEBUG decript=%s",string);}
	return 1;
}

After:


public Encript(string[])
{
	/*for(new x=0; x<strlen(string); x++)
	  {
		  string[x] += (3^x) * (x % 15);
		  if(string[x]>(0xff))
		  {
			  string[x] -= 256;
		  }
	  }*/
	return 1;
}

public Decript(string[])
{
	/*if (gdebug){printf("DEBUG string=%s",string);}
	for(new x=0; x<strlen(string); x++)
	  {
		  string[x] -= (3^x) * (x % 15);
		  if(string[x]>(0xff))
		  {
			  string[x] -= 256;
		  }
	  }
	if (gdebug){printf("DEBUG decript=%s",string);}*/
	return 1;
}