|
|
|
Расчитать CRC32, MD5 и SHA-1 файла
|
|||
|---|---|---|---|
|
#18+
В базе данных (простенький каталогизатор) требуется хранить три, наиболее распространенные контрольные суммы файлов. Чем их можно вычислить? Я нашел два подходящих проекта, но там только исходники. Сами библиотеки надо как-то компилировать :( http://www.cryptopp.com/ http://hashlib2plus.sourceforge.net/ Может есть какая-то маленькая, шустрая кроссплатформенная библиотека с открытм исходным кодом? Желательно не криптомонстры, а только просто сосчитать контрольную сумму. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.07.2013, 14:23 |
|
||
|
Расчитать CRC32, MD5 и SHA-1 файла
|
|||
|---|---|---|---|
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.07.2013, 14:27 |
|
||
|
Расчитать CRC32, MD5 и SHA-1 файла
|
|||
|---|---|---|---|
|
#18+
Inkelyad, спасибо большое. А мне казалось, что я уже весь СФ прошерстил. Мельком просмотрел - вроде бы то, что надо. Есть в составе и консольная утилитита, и библиотека: авторLibRHash is a professional, portable, thread-safe C library for computing a wide variety of hash sums. Main features Small and easy to learn interface. Hi-level and Low-level API. Calculates several hash functions simultaneously in one pass. Extremely portable: works the same on Linux, *BSD and Windows. Written in pure C, small in size, open source. License The library is in public domain. The source code is licensed under RHash License. Basically the library and its source code can be used for free in Commercial, Open Source and other projects. Вот ее функции: rhash_count @1 rhash_file @2 rhash_file_update @3 rhash_final @4 rhash_free @5 rhash_get_digest_size @6 rhash_get_hash_length @7 rhash_get_magnet_name @8 rhash_get_name @9 rhash_init @10 rhash_is_base32 @11 rhash_library_init @12 rhash_msg @13 rhash_print @14 rhash_print_bytes @15 rhash_print_magnet @16 rhash_reset @17 rhash_run_benchmark @18 rhash_set_callback @19 rhash_timer_start @20 rhash_timer_stop @21 rhash_transmit @22 rhash_update @23 rhash_wfile @24 Спасибо! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.07.2013, 14:41 |
|
||
|
|

start [/forum/topic.php?fid=16&gotonew=1&tid=1341745]: |
0ms |
get settings: |
8ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
145ms |
get topic data: |
9ms |
get first new msg: |
4ms |
get forum data: |
2ms |
get page messages: |
30ms |
get tp. blocked users: |
1ms |
| others: | 199ms |
| total: | 411ms |

| 0 / 0 |
