(PHP 4, PHP 5, PHP 7)
md5 — �����ַ����� MD5 ɢ��ֵ
It is not recommended to use this function to secure passwords, due to the fast nature of this hashing algorithm. See the Password Hashing FAQ for details and best practices.
$str
[, bool $raw_output
= FALSE
] ) : string
ʹ�� » RSA ���ݰ�ȫ��˾�� MD5 �����㷨���� str
�� MD5 ɢ��ֵ��
str
ԭʼ�ַ�����
raw_output
�����ѡ�� raw_output
������Ϊ TRUE
����ô MD5 ����ժҪ����16�ֽڳ��ȵ�ԭʼ�����Ƹ�ʽ���ء�
�� 32 �ַ�ʮ������������ʽ����ɢ��ֵ��
Example #1 md5() ����
<?php
$str = 'apple';
if (md5($str) === '1f3870be274f6c49b3e31a0c6728957f') {
echo "Would you like a green or red apple?";
}
?>