Search code examples
asp-classicvbscriptmd5md5sum

How to generate MD5 using VBScript in classic ASP?


I need to generate an MD5 in my application.

I've tried google but only find PHP code for MD5. I need to connect to a client system that validates using MD5 hash but their code is in PHP, mine is in Classic ASP using VBScript.

My server is .Net supported so I cannot use the PHP script. Is there any such MD5 code for VBScript in Classic ASP?


Solution

  • I have no idea if this code even works, since I have no way of testing it. However, it seems to be what you are asking for.

    http://www.bullzip.com/md5/vb/md5-vb-class.htm

    Here is an interesting article by Jeff Attwood on hashes. He has some important things to say about MD5:

    http://www.codinghorror.com/blog/2012/04/speed-hashing.html