using System.Collections.Generic;
private static string _key = "654sdf654gsdgadsfiu345";
public static void Main()
var innerSellKey = GetInnerSellKey();
var outerSellKey = GetOuterSellKey();
Console.WriteLine("original Key:"+_key);
Console.WriteLine("innerSellKey:"+innerSellKey);
Console.WriteLine("outerSellKey:"+outerSellKey);
public static string GetInnerSellKey()
public static string GetOuterSellKey()
public static string ConvertKey(int number)
byte[] values = Encoding.ASCII.GetBytes(_key);
var newStr = new List<string>();
foreach(var value in values)
newStr.Add(((char)t).ToString());
return string.Join("",newStr);