#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2023/6/23 17:30 # @Author : old tom # @File : futool_lang.py # @Project : futool-db-0.1 # @Desc : import hashlib def str_md5(content): """ 字符串转MD5 """ md5 = hashlib.md5() md5.update(content.encode(encoding='utf-8')) return md5.hexdigest()