5 hashlib模块

import hashlib def gen_md5(origin): """md5加密""" ha = hashlib.md5(b'lkplkp123123') ha.update(origin.encode('utf-8')) return ha.hexdigest()
posted @ 2022-09-14 15:29  角角边  Views(15)  Comments(0Edit  收藏  举报