Prüfsumme für Datei oder String mittels MD5 in ASP generieren
Message digest 5
This function generates a 32 byte Hash Code for a given String or File input.
Use this to generate a Unique Identifier or Checksum from a String or for a File.
To use it in an ASP file, download the following MD5.htm then save the text to MD5.asp
include MD5.asp in the ASP file you wish to use it in:
<!--#include virtual="/Shared/MD5.asp"-->
Its convenient to keep a folder in the root of your site for keeping all shared files in.
I do this and call the folder /Shared.
That way any page wishing to use a commonly used file can access it with a short path.
To get the MD5 value of a string simply call the function MD5 with the string as a parameter:
MyMD5Hash=MD5("The string to encode")