Home  >  Article  >  Backend Development  >  python implements md5 encryption

python implements md5 encryption

高洛峰
高洛峰Original
2016-10-19 17:17:171134browse

Python中电影MD5电视实施于hashlib电影的。在电影外视,我们先前于一个正视实体可以发动电影。 As follows: hashlib_data.py

#--encoding='utf-8'--

import hashlib

lorem=""" Lorem ipsum dolor be amet, consectetuer adipiscing elit. Donecegestas, for et consectetuer ullamcorper, lectus ligula rutrum leo, a elementum elit tortor eu quam. Duis tincidunt nisi as before. Nullafacilisi. Sed sad eros eu libero Pellentesque velarcu, iaculis amet, pulvinar sed nisl eleifend mauris in nibh placerat :

#--encoding='utf-8'--

import hashlib from hashlib_data

import lorem

h=hashlib.md5()

h.update(lorem)

print h.hexdigest()

h=hashlib.md5()是电影前以MD5公式名字;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn