Returns an MD5 hash for the given file.


GML Code Example


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

Returns: String


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.


GML Code 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".

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here