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, 5, 5, 1, 3, 0, 8, 5, 4, 1, 5, 8, 4, 2, 8, 6, 7, 7, 3, 5, 3, 6 },
{ 8, 6, 3, 4, 6, 4, 5, 8, 8, 6, 7, 6, 8, 3, 1, 7, 8, 5, 1, 6, 0, 8, 7, 0, 1, 6, 6, 7, 7, 8 },
{ 2, 8, 6, 2, 6, 8, 7, 8, 3, 3, 8, 5, 2, 7, 0, 7, 3, 4, 4, 8, 7, 6, 4, 5, 5, 8, 7, 2, 3, 8 },
{ 6, 7, 0, 0, 3, 8, 8, 5, 6, 2, 8, 0, 2, 6, 7, 4, 6, 8, 8, 2, 3, 1, 2, 7, 0, 5, 3, 1, 6, 6 },
{ 7, 8, 7, 8, 2, 6, 2, 3, 0, 4, 2, 3, 0, 3, 1, 2, 2, 1, 5, 5, 1, 7, 0, 3, 4, 6, 2, 4, 4, 7 },
{ 5, 8, 0, 7, 4, 4, 1, 1, 0, 3, 6, 6, 7, 6, 4, 4, 7, 8, 7, 6, 4, 7, 5, 2, 0, 8, 8, 4, 4, 5 },
{ 4, 7, 8, 2, 8, 3, 3, 2, 7, 6, 1, 0, 0, 1, 7, 3, 8, 2, 7, 8, 8, 2, 6, 6, 3, 7, 2, 6, 6, 4 },
{ 4, 5, 6, 4, 8, 8, 7, 5, 7, 0, 1, 5, 0, 0, 5, 3, 6, 3, 4, 5, 8, 6, 6, 5, 5, 1, 1, 1, 7, 0 },
{ 1, 5, 4, 2, 1, 4, 3, 5, 2, 7, 5, 3, 3, 6, 6, 2, 2, 5, 1, 8, 1, 7, 1, 0, 5, 7, 8, 0, 8, 6 },
{ 7, 5, 6, 7, 8, 5, 1, 6, 8, 0, 0, 1, 1, 5, 0, 5, 2, 8, 7, 2, 8, 4, 0, 8, 8, 2, 3, 3, 6, 2 }
};
public static string Get_ID(int int_RollingID, int int_RollingIDPos)
{
string[] Str_Arry_Temp = new string[3];
int[] int_Arry_KeyLenght = new int[2];
char char_Scann;
Str_Arry_Temp[0] = Get_StringReverse(Get_Hashing());
for (int int_Scann = 0; int_Scann < 30; int_Scann++)
{
char_Scann = Convert.ToChar(Str_Arry_Temp[0].Substring(int_Scann, 1));
if (Char.IsNumber(char_Scann) == true)
{ Str_Arry_Temp[1] = Str_Arry_Temp[1] + char_Scann.ToString(); }
}
for (int int_KeyAt = 0; int_KeyAt < 30; int_KeyAt++)
{ if (Str_Arry_Temp[1].Length < 30) { Str_Arry_Temp[1] = Str_Arry_Temp[1] + M_int_Arry_RollingID[int_RollingID, int_KeyAt + int_RollingIDPos].ToString(); } }
Str_Arry_Temp[2] = (Str_Arry_Temp[1].Substring(0, 10) + "#" + // Public
Str_Arry_Temp[1].Substring(10, 20)); // Hidden
// Clear
Str_Arry_Temp[0] = string.Empty;
Str_Arry_Temp[1] = string.Empty;
return Str_Arry_Temp[2];
}