php md5() 函數計算字符串的 MD5 散列。
php md5() 函數使用 RSA 數據安全,包括 MD5 報文摘譯算法。
如果成功,則返回所計算的 MD5 散列,如果失敗,則返回 false。
The md5() function calculates the MD5 hash of a string.
md5()函數的作用是:計算字符串的MD5 hash。
The md5() function uses the RSA Data Security, Inc. MD5 Message-Digest Algorithm.
md5()函數使用美國實驗室(以研究加密算法而著名)數據安全加密。它采用MD5信息散列[Message-Digest]運算法則
From RFC 1321 - The MD5 Message-Digest Algorithm: The MD5 message-digest algorithm takes as input a message of arbitrary length and produces as output a 128-bit fingerprint or message digest of the input. The MD5 algorithm is intended for digital signature applications, where a large file must be compressed in a secure manner before being encrypted with a private (secret) key under a public-key cryptosystem such as RSA.
RFC1321的解釋 - MD5信息散列[Message-Digest]運算法則:“MD5信息散列運算法則將任意長度的信息作為輸入值,並將其換算成壹個128位長度的“指紋信息”或“信息散列”值來代表這個輸入值,並以換算後的值作為結果。MD5運算法則主要是為“數字簽名程序”而設計的;在這個“數字簽名程序“中,較大的文件將在加密(這裏的加密過程是通過在壹個密碼系統下[如:RSA]的公開密匙下設置私要密匙而完成的)之前以壹種安全的方式進行壓縮。”
This function returns the calculated MD5 hash on success, or FALSE on failure.
如果函數執行成功將計算MD5 hash,如果失敗返回false。