I had another RentACoder programmer write for me an HTMLencryption function in VB6. It works and is good, but the problem is that it's too slow. Actually, it's fine for most use, but I need to encrypt in .1 seconds or less what currently takes his function about 5 seconds on a fast PC on a large HTML file of, 100,000+ bytes. Sometimes I need to encrypt HTML of even 1mb, and this should not take longer than 1 second or so. This function is run inside a standard VB6 exe that generates HTML - not an IIS dll or asp or anything like that. The problem is that there is a main loop that processes the html one character at a time. because of string manipulation issues, this turns out to be slow. Your job is to make the code much faster - down to my target rate or even much faster. Unfortunately, due to the environment that this is to run in, it must remain in VB6. You can use whatever standard vb code / APIs that you want, but no custom controls. I will give you his (good) code. The function is very short (there are a few supporting functions as well). You will return to me some vb code with the exact same functions / output but that runs faster. You can write and include additional functions, class files, etc as needed. If you've ever worked with (pseudo) threads or some other parallel method in vb, this project will be good for that. the one loop can highly benefit from being made parallel in some clever way.
full source code, as described above
Visual Basic 6