Re: md5 check

2012-04-19 Thread Chris Angelico
On Thu, Apr 19, 2012 at 5:46 PM, contro opinion wrote: import hashlib > f=open('c:\gpg4win-2.1.0.exe','rb') print  hashlib.md5(f.read()).hexdigest() > ad6245f3238922bb7afdc4a6d3402a65 print  hashlib.sha1(f.read()).hexdigest() > da39a3ee5e6b4b0d3255bfef95601890afd80709 > > i get

Re: md5 check

2012-04-19 Thread Peter Otten
contro opinion wrote: import hashlib f=open('c:\gpg4win-2.1.0.exe','rb') print hashlib.md5(f.read()).hexdigest() > ad6245f3238922bb7afdc4a6d3402a65 print hashlib.sha1(f.read()).hexdigest() > da39a3ee5e6b4b0d3255bfef95601890afd80709 > > i get it with md5,why the sha1 is wrong

Re: md5 check

2012-04-19 Thread contro opinion
>>> import hashlib >>> f=open('c:\gpg4win-2.1.0.exe','rb') >>> print hashlib.md5(f.read()).hexdigest() ad6245f3238922bb7afdc4a6d3402a65 >>> print hashlib.sha1(f.read()).hexdigest() da39a3ee5e6b4b0d3255bfef95601890afd80709 i get it with md5,why the sha1 is wrong? the sha1 right is f619313cb4224

Re: md5 check

2012-04-18 Thread Dan Sommers
On Thu, 19 Apr 2012 09:31:05 +0800 contro opinion wrote: > i have download file (gpg4win-2.1.0.exe from > http://www.gpg4win.org/download.html) > when i run : > > Type "help", "copyright", "credits" or "license" for > >>> import md5 > >>> f=open('c:\gpg4win-2.1.0.exe','r') > >>> print md5.new(

Re: md5 check

2012-04-18 Thread contro opinion
>>> import md5 >>> f=open('c:\gpg4win-2.1.0.exe','rb') >>> print md5.new(f.read()).hexdigest() ad6245f3238922bb7afdc4a6d3402a65 it is still not equal f619313cb42241d6837d20d24a814b81a1fe7f6d please try it on your computer , what is wrong? 2012/4/19 Dan Sommers > On Thu, 19 Apr 2012 09:31:05

Re: md5 check

2012-04-18 Thread MRAB
On 19/04/2012 02:43, Jerry Hill wrote: On Wed, Apr 18, 2012 at 9:31 PM, contro opinion wrote: i have download file (gpg4win-2.1.0.exe from http://www.gpg4win.org/download.html) when i run : Type "help", "copyright", "credits" or "license" for import md5 f=open('c:\gpg4win-2.1.0.exe','

Re: md5 check

2012-04-18 Thread Dan Sommers
On Thu, 19 Apr 2012 09:31:05 +0800 contro opinion wrote: > >>> import md5 > >>> f=open('c:\gpg4win-2.1.0.exe','r') > >>> print md5.new(f.read()).hexdigest() > 'd41d8cd98f00b204e9800998ecf8427e' > > it is not = f619313cb42241d6837d20d24a814b81a1fe7f6d > gpg4win-2.1.0.exe please see :gpg4win-2

Re: md5 check

2012-04-18 Thread Jerry Hill
On Wed, Apr 18, 2012 at 9:31 PM, contro opinion wrote: > i have download  file (gpg4win-2.1.0.exe  from > http://www.gpg4win.org/download.html) > when i run : > > Type "help", "copyright", "credits" or "license" for import md5 f=open('c:\gpg4win-2.1.0.exe','r') print md5.new(f.read(

md5 check

2012-04-18 Thread contro opinion
i have download file (gpg4win-2.1.0.exe from http://www.gpg4win.org/download.html) when i run : Type "help", "copyright", "credits" or "license" for >>> import md5 >>> f=open('c:\gpg4win-2.1.0.exe','r') >>> print md5.new(f.read()).hexdigest() 'd41d8cd98f00b204e9800998ecf8427e' it is not = f61