md5_file()
function calculates the MD5 hash of a file.
md5_file()
function uses RSA data security, including the MD5 message digest algorithm.
Interpretation from RFC 1321 - MD5 message digest algorithm: The MD5 message digest algorithm takes information of any length as input value and converts it into a 128-bit length "fingerprint information" or "message digest" value to represent this input value, and uses the converted value as the result. The MD5 algorithm is mainly designed for digital signature applications; in this digital signature application, larger files will be compressed in a secure way before encryption (the encryption process here is done by setting a private key under a public key under a cryptographic system [such as RSA]).
To calculate the MD5 hash of a string, use the md5()
function.
md5_file ( file , raw )
parameter | describe |
---|---|
file | Required. Specify the documents to be calculated. |
raw |
Optional. Boolean value, specifying hexadecimal or binary output format:
|