Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'll leave the original answer content below for historical reference, but it should be noted that <strong>this is NOT a working answer to the original question</strong>.</p> <p>Instead, see the top-voted answer in this thread, by @Terrapin in January 2011. I hope the OP sees this and can change the accepted answer. Heck, I'll even flag the mods to see if anything can be done about this.</p> <hr> <p>To build on the answer by Edward Smith, and the follow-up comments by czuroski, here is my solution.</p> <p>First, you need an XOR function in C#, which I've taken from <a href="http://www.eggheadcafe.com/tutorials/aspnet/8b53894c-a889-4914-8c46-122980cc44ae/simple-xor-encryption.aspx" rel="nofollow noreferrer">here</a> and modified slightly.</p> <pre><code>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 &lt; textToEncrypt.Length; i++) { c = inSb[i]; c = (char)(c ^ key); outSb.Append(c); } return outSb.ToString(); } } } </code></pre> <p>Then, take the result of the XOR and base-64 encode it. After you have that string, MD5 hash it. The result should match the result from the original code snippet:</p> <pre><code>#Hash(Encrypt(Form.UserPassword,GetSiteVars.EnCode))# </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload