crc32和crc32b有什么区别? [英] What is the difference between crc32 and crc32b?

查看:528
本文介绍了crc32和crc32b有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然,可以使用算法crc32调用PHP函数 hash() crc32b?它们之间有什么区别?

Apparently the PHP function hash() can be called with the algorithms crc32 and crc32b? What is the difference between them?

推荐答案

两种不同的算法. CRC32b是此处,而CRC32是在此处定义的帧检查序列.它们是不同的东西,尽管差异并不大.

Two different algorithms. CRC32b is an implementation of the consistency algorithm defined here, whereas CRC32 is the frame check sequence defined here. They're different things, though the differences are not often big.

一种检查方法:

<?php
echo hash("crc32", __FILE__)."<br/>";
echo hash("crc32b", __FILE__); ?>

由于它们的相似性,起始十六进制值将相对相似.

Due to their similarity, the starting hex values will be relatively similar.

这篇关于crc32和crc32b有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆