public static string GetDBNameSuffixOld(string SouqaID)
var idObfs = new int[]{3, 4, 1, 6, 7, 3, 2, 8};
var hashed = string.Empty;
for (int i = 0; i < unhashed.Length; ++i)
var c = (char)((int)unhashed[i] + idObfs[i]);
while (!System.Char.IsLetterOrDigit(c))
public static string GetDBNameSuffixNew(string SouqaID)
var idObfs = new int[]{3, 4, 1, 6, 7, 3, 2, 8, 5, 4};
var hashed = string.Empty;
for (int i = 0; i < unhashed.Length; ++i)
var c = (char)((int)unhashed[i] + idObfs[i]);
while (!System.Char.IsLetterOrDigit(c))
public static void Main()
var oldMethod = GetDBNameSuffixOld("19289131");
var newMethod = GetDBNameSuffixNew("19289131");
if (String.Compare(oldMethod, newMethod) != 0)
Console.WriteLine("Mismatch");
Console.WriteLine(oldMethod);
Console.WriteLine(newMethod);