id hate to have to see you fall back on js for something like this.
As that you have all the power of the .ne framework, minus some goodness, I would instead generate my own md5sum function or the like in combination w/ a challenge string sent down from a web service call, or in the generated aspx. I wouldnt expect this to be built into the final bits, but generating this kind of code should be pretty light weight.