static string CalculateSParam(int x, int y) { int seclen = (3 * x + y) % 8; string sec = Secword.Substring(0, seclen); return sec; }