[sourcecode language=”csharp”] int intVsopCode;
int.TryParse(strVsopCode, out intVsopCode);
decimal result1 = intVsopCode & 255;
decimal result2 = ((intVsopCode / 256) & 255);
decimal result3 = (int)result1 ^ (int)result2;
decimal passcode = ((result3 * 255) % 99);

[/sourcecode]