Thu, 08 Mar 2007

:: MD5使用快记

MD5使用快记
MD5
( Message-Digest algorithm 5) MD5作为一个单向混淆算法,即不易以逆向运算得到原始资料

Pythonic 的使用:

Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import md5
>>> dir(md5)
['MD5Type', '__doc__', '__name__', 'digest_size', 'md5', 'new']
>>> md5.md5(文件)
<md5.md5 object at 0x00B83800>
>>> md=md5.md5(文件)
>>> dir(md)
['copy', 'digest', 'hexdigest', 'update']
>>> md.hexdigest()
'50235d71d6aa33a2be8d8bfbb1e87b91'

嗯哪……


动力源自::txt2tags

chinese ,OpenSource ,pythonic ,md5

::名:Name
::邮:Mail
::址:URL.
注:Comment::

The Magic Word(防Spamer问答)::
Pythonic!What is the 1st word in this sentence?回答本句第一个单词是什么?



::Thu, 08 Mar 2007 10:13 GMT
[PyBlosxom]1.4.3 01/10/2008 | [Python] | [FreeBSD] | [Apache]
一切内容使用
Creative Commons License
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License .