!9QRc@sdZdZeZedZd Zd Zd d Zd d ZyddlZeZ eZ Wne k reZ eZ nXxUeD]MZ ye e e e >> import hashlib >>> m = hashlib.md5() >>> m.update("Nobody inspects") >>> m.update(" the spammish repetition") >>> m.digest() '\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9' More condensed: >>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest() 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' tmd5tsha1tsha224tsha256tsha384tsha512tnewt algorithmscCsy|dkr"ddl}|jS|dkrAddl}|jS|dkrddl}|d }|d krv|jS|d kr|jSnK|dkrddl}|d }|dkr|jS|dkr|jSnWnt k rnXt d|dS(NtSHA1RitMD5RtSHA256RtSHA224Rit256t224tSHA512RtSHA384Rt512t384sunsupported hash type %s(RR(R R(R ssha256R ssha224(Rssha512Rssha384( t_shaRt_md5t_sha256RRt_sha512RRt ImportErrort ValueError(tnameRRRtbsR((sH/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/hashlib.pyt__get_builtin_constructorBs0                cCsGy"ttd|}||SWnttfk rBt|SXdS(Ntopenssl_(tgetattrt_hashlibtAttributeErrorRR(Rtf((sH/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/hashlib.pyt__get_openssl_constructor^s tcCst||S(s|new(name, string='') - Return a new hashing object using the named algorithm; optionally initialized with a string. (R(Rtstring((sH/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/hashlib.pyt__py_newjscCs9ytj||SWntk r4t||SXdS(s|new(name, string='') - Return a new hashing object using the named algorithm; optionally initialized with a string. N(RRRR(RR"((sH/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/hashlib.pyt __hash_newqs iNscode for hash %s was not found.(smd5ssha1ssha224ssha256ssha384ssha512(snews algorithms(t__doc__t__always_supportedRt__all__RR R#R$RRt __get_hashRt __func_nametglobalsRtloggingt exception(((sH/opt/poky/1.5/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/hashlib.pyt7s,