sha256 a md5 vracaju rozne hodnoty

Daniel Gerzo danger at rulez.sk
Tue Feb 14 21:24:36 CET 2006


Zdravim Dan,

Tuesday, February 14, 2006, 9:14:37 PM, si natukal:

> Daniel Gerzo napsal/wrote, On 02/14/06 20:54:
>>>         Nemohu vyloucit chybu primo ve vpouctu hashe, i kdyz jsem o takovem
>>> problemu neslysel. Mozna by pro zacatek stacilo zjistit, jestli to 
>>> opravdu pokazde ze souboru nascte totozna data. Tj. udelat nekolik kopii
>>> pomoci a porovnat je pomoci diff
>> 
>> prepac, ale trochu som nepochopil ze co si myslel.
>> 
>> len doplnim, ze sa to nedeje prave len pri pythone, ale napriklad aj
>> pri distfile perlu, apache,... vsimol som si ze len pri vacsich
>> suboroch.

>         Takze, kdyz udelas nekolik kopii souboru a ty budou shodne, pak problem
> patrne neni v "diskove" casti. Pokdu budou ruzne, pak problem 
> pravdepodobne neni v hashovacich rutinach.

total 9632
-rw-r--r--    1 root     users     9839086 Feb 14 21:18 perl-5.8.7.tar.bz2
root@[bigbang /usr/home/danger]# sha256 < perl-5.8.7.tar.bz2
cabf8f474df8da0895b342f7d465418321bae2396e0baea410b8202f10d8d2ad
root@[bigbang /usr/home/danger]# sha256 < perl-5.8.7.tar.bz2
1e5c89322a4945b98d030d4e492fc916af441303564fd60bfaf1a50ab0c4c6f0
root@[bigbang /usr/home/danger]# sha256 < perl-5.8.7.tar.bz2
59351d048e6e19e0fe24c6a1596d0e0d5135476c9dc1ea979bbbd3088e1d5c13
root@[bigbang /usr/home/danger]# cp perl-5.8.7.tar.bz2 a
root@[bigbang /usr/home/danger]# cp perl-5.8.7.tar.bz2 b
root@[bigbang /usr/home/danger]# cp perl-5.8.7.tar.bz2 c
root@[bigbang /usr/home/danger]# diff -ruN perl-5.8.7.tar.bz2 a
root@[bigbang /usr/home/danger]# diff -ruN perl-5.8.7.tar.bz2 b
root@[bigbang /usr/home/danger]# diff -ruN perl-5.8.7.tar.bz2 c
root@[bigbang /usr/home/danger]# diff -ruN a b
root@[bigbang /usr/home/danger]# diff -ruN a c
root@[bigbang /usr/home/danger]# diff -ruN b c
root@[bigbang /usr/home/danger]# sha256 < a
a020114178036dd29576c402999e354f4432217521375538d99a2790b51f4baf
root@[bigbang /usr/home/danger]# sha256 < a
7662820f440fa2c757f0267481ba07f1db3d8e84c1e22885810d310d885302dd
root@[bigbang /usr/home/danger]# sha256 < b
aa051b0043057bf33f8a9788dba5b9f5d47d21fcda7f377e54291b93bc6b5980
root@[bigbang /usr/home/danger]# sha256 < b
cd6fe9118e292d167e527bc86b46a877e76fa006d123fc893006976529b6c906
root@[bigbang /usr/home/danger]# sha256 < c
3c08104c4760adfa7d83eeaacbec40f71246e3017a418bff3fea4548bedfbfce
root@[bigbang /usr/home/danger]# sha256 < c
a28776343645461efc9be370cf9e56ca3abd018f53141824af14507abef5b625

>         Rikam to proto, ze uz jsem se s necim takovym jednou setkal a problem
> skutecn enebyl v hashovacich rutinach, ale v chybe radice. Coz 
> neznamena, ze u tebe je to totez.

-- 
S pozdravom,
  Daniel Gerzo




More information about the Users-l mailing list