Home > Backend Development > PHP Tutorial > CRC32,很容易冲突啊该如何处理

CRC32,很容易冲突啊该如何处理

WBOY
Release: 2016-06-13 13:41:21
Original
2705 people have browsed it

CRC32,很容易冲突啊
散分,生日悖论果然不是骗人的

附测试代码,很容易算出一对

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
define('R',    1e5);
$_CRC32    = array();
for($i=0;;++$i)
{
    $tmp    = sprintf('%X', crc32($i));
    if(isset($_CRC32[$tmp]))
    {
        echo    "{$_CRC32[$tmp]}#{$i}\n";
        break;
    }
    if($i<r></r>
Copy after login


------解决方案--------------------
一万米又来调戏我们了
------解决方案--------------------
300分资助我吧,我的可用分只有[b]130[/b]分了,可怜的
------解决方案--------------------
可怜的小白 来接分 不赞助 我申请小号去
------解决方案--------------------
额。。。没看明白什么代码什么意思
------解决方案--------------------
接住了---------------------++++++++++++
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template