#define DecodeHash(s) ReverseString(s.SubString(s.Length() - 4, 5) + s.SubString(тут_надо_немного_подумать_самому);