Encrypting string gives different results
问题 I've been given the task to make two older systems work together. The first is written in ASP Classic and the second in C#. The ASP-C system have generated an encrypted string and stored in the database. Now I need the C# to do the same; providing the str and key should give the same result as the ASP-C. The str: 1234567890 The key: 12$1$doFmp8gD$7Es.78EumklLvtraylRQy034 The ASP-C encryption function: Function EncryptString(str, key) newStr = "" strLen = Len(str) keyLen = Len(key) keyPos = 1