public static void Main()
var secret = SimpCryptDec("8610ecd39e8fcd9c95ecfecd9e");
Console.WriteLine(secret);
public static int HexDigit(char digit)
if ((digit >= '0') && (digit <= '9'))
if ((digit >= 'a') && (digit <= 'f'))
if ((digit >= 'A') && (digit <= 'F'))
public static int Hex2C(char digit1, char digit2)
if ((i1 == -1) || (i2 == -1))
public static string SimpCryptDec(string input)
string result = string.Empty;
if (string.IsNullOrEmpty(input) || ((input.Length < 2) || (input.Length > 400)))
for (int i = 0; i < input.Length; i+=2)
newValue= Hex2C(input[i],input[i+1]);
newValue = newValue ^ old ^ nc2 ^ cv;
result += (char)newValue;