using System;
using System.Text;
using System.Security.Cryptography;
namespace HelloWorldApplication
{
class HelloWorld
{
public static string I(string A_0)
{
string text = "";
try
{
byte[] bytes = Encoding.UTF8.GetBytes(A_0);
for (int i = 0; i < bytes.Length; i++)
{
text = text + bytes[i].ToString() + "_";
}
text = text.TrimEnd('_');
}
catch (Exception) when (double.TryParse(text, out double result) && result <= 0.0)
{
}
return text;
}
public static string G(string A_0)
{
return I(A_0.Substring(2, 7)) + I(A_0.Substring(6, 11)) + I(A_0.Substring(8, 7));
}
public static string J(string A_0)
{
using (MD5 md5 = MD5.Create())
{
byte[] inputBytes = Encoding.Unicode.GetBytes(A_0.Trim());
byte[] hashBytes = md5.ComputeHash(inputBytes);
return BitConverter.ToString(hashBytes);
}
}
static void Main(string[] args)
{
string input = "F3CE988CF62A24AFCQNCJWQCQ5EDD";
string A_0 = G(input);
Console.WriteLine(A_0);
string time = "1701829232";
string a = "23010010100101001011" + A_0 + time;
string text = J(a);
Console.WriteLine(text);
string cdk = text.Substring(6, 17);
Console.WriteLine(cdk+"-"+time);
Console.ReadKey();
}
}
}