I will leave the source text of the answer below for reference, but it should be noted that this is NOT a working answer to the original question .
Instead, see the answer to the top voice in this thread from @Terrapin in January 2011. I hope the OP sees this and can change the accepted answer. Damn, I’ll even celebrate mods to see if anything can be done about this.
To build on Edward Smith's answer and subsequent czuroski comments, here is my solution.
First you need the XOR function in C #, which I took from here and changed a bit.
using System; using System.Collections.Generic; using System.Text; namespace SimpleXOREncryption { public static class EncryptorDecryptor { public static string EncryptDecrypt(string textToEncrypt, int key) { StringBuilder inSb = new StringBuilder(textToEncrypt); StringBuilder outSb = new StringBuilder(textToEncrypt.Length); char c; for (int i = 0; i < textToEncrypt.Length; i++) { c = inSb[i]; c = (char)(c ^ key); outSb.Append(c); } return outSb.ToString(); } } }
Then take the result of XOR and base-64. Once you have this line, MD5 hash. The result should match the result of the source code snippet:
#Hash(Encrypt(Form.UserPassword,GetSiteVars.EnCode))#
Adam tuttle
source share