包含自己的校验和的文件 [英] File containing its own checksum

查看:94
本文介绍了包含自己的校验和的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以创建一个包含其自己的校验和(MD5,SHA1等)的文件?为了使小丑感到不高兴,我的意思是简单地加上校验和,而不是对其进行计算。

Is it possible to create a file that will contain its own checksum (MD5, SHA1, whatever)? And to upset jokers I mean checksum in plain, not function calculating it.

推荐答案

我用C语言创建了一段代码,然后跑了不到2分钟的时间就得到了这个奇迹:

I created a piece of code in C, then ran bruteforce for less than 2 minutes and got this wonder:

The CRC32 of this string is 4A1C449B

请注意句子后面必须没有字符(行尾等)。

Note the must be no characters (end of line, etc) after the sentence.

您可以在此处进行检查:
http://www.crc-online.com.ar/index.php?d=+this+string+is+4A1C449B&en的+ CRC32 + = Calcular + CRC32

You can check it here: http://www.crc-online.com.ar/index.php?d=The+CRC32+of+this+string+is+4A1C449B&en=Calcular+CRC32

这个也很有趣:

I killed 56e9dee4 cows and all I got was...

源代码(对不起,这是一个有点混乱): http://www.latinsud.com/pub/crc32/

Source code (sorry it's a little messy) here: http://www.latinsud.com/pub/crc32/

这篇关于包含自己的校验和的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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