Hi. im trying to convert this from VB6/classic ASP to C# but the result for some areas are different:

Code:
 strPassword = LCase(strPassword)
For iIdx = 1 To Len(strPassword)
                strPassword2 = strPassword2 & Chr(Asc(Mid(strPassword, iIdx, 1)) + 13)
            Next
in C#, this seems to be the following:

Code:
string rawData = rawPass.ToLower();
                string encrypted = string.Empty;
                for (var iIdx = 1; iIdx <= rawData.Length; iIdx++)
                {
                    encrypted = encrypted + (char)(Convert.ToInt32(rawData[iIdx - 1]) + 13);
                }

                return encrypted;
However, in certain circumstances, the passwords seems to differ in the output.

is the code conversion incorrect?

test case: Tresc@l41