Hi. im trying to convert this from VB6/classic ASP to C# but the result for some areas are different:
in C#, this seems to be the following:Code:strPassword = LCase(strPassword) For iIdx = 1 To Len(strPassword) strPassword2 = strPassword2 & Chr(Asc(Mid(strPassword, iIdx, 1)) + 13) Next
However, in certain circumstances, the passwords seems to differ in the output.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;
is the code conversion incorrect?
test case: Tresc@l41





any chance of a regain? 
Reply With Quote