如何计算一个字符串的CRC32 [英] How do I calculate CRC32 of a string

查看:918
本文介绍了如何计算一个字符串的CRC32的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何计算一个字符串的CRC32(循环冗余校验)的.NET?

How do I calculate the CRC32 (Cyclic Redundancy Checksum) of a string in .NET?

推荐答案

这家伙似乎有你的答案。

This guy seems to have your answer.

http://damieng.com/blog/2006/08/08/Calculating_CRC32_in_C_and_NET

和万一博客曾经消失或破坏的网址,这里的GitHub的链接:

And in case the blog ever goes away or breaks the url, here's the github link:

<一个href="https://github.com/damieng/DamienGKit/blob/master/CSharp/DamienG.Library/Security/Cryptography/Crc32.cs" rel="nofollow">https://github.com/damieng/DamienGKit/blob/master/CSharp/DamienG.Library/Security/Cryptography/Crc32.cs

这篇关于如何计算一个字符串的CRC32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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