Все вопросы: [crc32]
10 вопросов
the fastest way to create checksum for large files in python
i need to transfer large files across network and need to create checksum for them on hourly basis. so the speed for generating checksum is critical for me. somehow i can't make zlib.crc32 and zlib.adler32 working with files larger than 4GB on Windows XP Pro 64bit machine. i suspect i've hit the...
Reversing CRC32
I'm looking for a way to reverse a CRC32 checksum. There are solutions around, but they are either badly written, extremely technical and/or in Assembly. Assembly is (currently) beyond my ken, so I'm hoping someone can piece together an implementation in a higher level language. Ruby is ideal, bu...
Efficient ways of telling whether or not a string/file has changed - crc32? md5? something else?
I'm looking for an efficient way to tell whether or not a string (or a file) has changed since the last time we looked at it. So, we run this function against 1,000,000 files/strings (each file/string is less than 1000 bytes), and store the output for each file/string. I'll then wait a few da...
CRC32 to make short URL for web
I am trying to understand crc32 to generate the unique url for web page. If we use the crc32, what is the maximum number of urls can be used so that we can avoid duplicates? What could be the approximative string length to keep the checksum to be 2^32? When I tried UUID for an url and convert ...
Hash function combining - is there a significant decrease in collision risk?
Does anyone know if there's a real benefit regarding decreasing collision probability by combining hash functions? I especially need to know this regarding 32 bit hashing, namely combining Adler32 and CRC32. Basically, will adler32(crc32(data)) yield a smaller collision probability than crc32(dat...
How to create Uncompressed Zip archive in Java
I am using the Zip utility package of Java and wanted to know how to create a zip file with no compression at all. Setting the level to 0 doesn't help. Is this right? Also, when I used the STORED method, it throws following exception: java.util.zip.ZipException: STORED entry missing size, com...
Что такое работающий CRC?
Я искал и не могу найти информацию о том, что это такое и как он вычисляется. Понятия не имею, почему вопрос был поставлен против. Разве это не понятно и связано с программированием? Или я должен был спросить: # Or you can compute the running CRC: $crc = 0; $crc = Archive::Zip::computeCR...
Почему эта реализация CRC32 в C # такая медленная?
Я использую следующую функцию для вычисления CRC32 файла в проекте VS2008, .NET 3.5: public UInt32 ComputeHash(System.IO.Stream stream) { unchecked { const int BUFFER_SIZE = 1024; UInt32 crc32Result = 0xFFFFFFFF; byte[] buffer = new byte[BUFFER_SIZE]; ...
CRC32 C или C ++ реализация
Я ищу реализацию CRC32 на C или C ++, которая явно лицензирована как бесплатная или общественное достояние. Реализация здесь кажется хорошей, но единственное, что в ней говорится о лицензии, - это «исходный код. ", что недостаточно хорошо. Я бы предпочел не LGPL, чтобы мне не пришлось дурачить...
Как рассчитать CRC32 строки
Как рассчитать CRC32 (контрольную сумму циклической избыточности) строки в .NET?