[Python-de] md5
Hartmut Goebel
h.goebel at goebel-consult.de
Mon Jul 18 10:40:59 CEST 2005
Hallo,
Stefan Miefert schrieb:
> from md5 import *
> m=md5.new()
> print m.digest()
Sicher nicht so, denn:
>>> from md5 import *
>>> m=md5.new()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'builtin_function_or_method' object has no attribute 'new'
>>>
>
> Meine bisherigen md5s sehen aber alle eher so aus
>
> 34edf3223567137512635753df345638
>>> print m.hexdigest()
d41d8cd98f00b204e9800998ecf8427e
--
Schönen Gruß - Regards
Hartmut Goebel
| Hartmut Goebel | IT-Security -- effizient |
| h.goebel at goebel-consult.de | www.goebel-consult.de |