If I remember correctly, there was some suggestion about MD5 before. Anyhow, thought I'd bring it to surface once again as it would be really useful for many things (file verification, uniqueness in naming etc).

Was thinking about a function something like this:

MD5("filename", optional checksum)

ie; to create a checksum:
$checksum = MD5("C:\kix32.exe")

For checksum creation, the function could return the checksum, or an errorcode.

To verify a checksum:
$result = MD5("C:\kix32.exe", 882022497d2b3f26d213bcb4b34a1341)

For verification, the function could return 0 if it's a match, or either an errorcode or the correct checksum if it's a non-match.

?

[ 01. September 2003, 18:11: Message edited by: masken ]
_________________________
The tart is out there