Home  >  Article  >  Backend Development  >  PHP website password md5 encrypted string comparison method

PHP website password md5 encrypted string comparison method

WBOY
WBOYOriginal
2016-08-08 09:22:371491browse

var_dump(md5('240610708') == md5('QNKCDZO'));
var_dump(md5('aabg7XSs') == md5('aabC9RqS'));
var_dump(sha1('aaroZmOk') == sha1( 'aaK1STfY'));
var_dump(sha1('aaO8zKZF') == sha1('aa3OFF9m'));
var_dump('0010e2' == '1e3');
var_dump('0x1234Ab' == '1193131') ;
var_dump('0xABCdef' == ' 0xABCdef');

The above introduces the comparison method of PHP website password md5 encrypted string, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn