md5_file

Returns an MD5 hash for the given file.

Syntax:

md5_file(filename)


Argument Description
filename The file to generate the MD5 hash for.


Returns: String


Description

In cryptography, MD5 (Message-Digest algorithm 5) is a widely used cryptographic hash function with a 128-bit hash value and has been employed in a wide variety of security applications. It is also commonly used to check the integrity of files and strings. This function will take the given file and generate a unique MD5 for that file which can then be stored for later use.


Example:

hash = md5_file(working_directory + "\game_data.ini")

The above code will generate an MD5 hash for the specified file and store the returned value in the variable "hash".


Back: File Handling
Next: sha1_string_utf8
© Copyright YoYo Games Ltd. 2018 All Rights Reserved