MD5密码加密
# coding:utf-8
import requests
import re
from bs4 import BeautifulSoup
import hashlib
def encryptPwd(passwd):
# 对密码进行了md5双重加密
passwd = hashlib.md5(passwd.encode(‘utf-8‘)).hexdigest()
# veennike 这个值是在js文件找到的一个写死的值
passwd = ‘veenike‘+passwd+‘veenike‘
passwd = hashlib.md5(passwd.encode(‘utf-8‘)).hexdigest()
return passwd
if __name__ == "__main__":
# 测试密码123456
print(encryptPwd("123456"))
输出结果:
原文地址:https://www.cnblogs.com/xiaohuhu/p/9537352.html
时间: 2024-10-10 07:09:48