资源简介
encrypt2.py
代码片段和文件信息
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
‘ encrypt module‘
__author__ = ‘Leon Shih‘
import base64
import datetime
import hashlib
import time
from Crypto.Cipher import AES
def strToLongEn(str step):
return sum([(ord(y) << (x & 7)) + (x + step - ord(y)) for x y in enumerate(str)])
def strToLongEn2(str step):
return sum([(ord(y) << (x & 0xf)) + (x + step - ord(y)) for x y in enumerate(str)])
def strToLongEn3(str step):
return sum([(ord(y) << (x & 0xf)) + (x + x % 4 + step - ord(y)) for x y in enumerate(str)])
def md5(str1):
h1 = hashlib.md5()
h1.update(str1.encode(‘utf-8‘))
return h1.hexdigest()
def makeKey_0(str1):
s = str1[5:30] + str1[36:39]
return md5(s)[4:20]
def makeKey_1(str1):
s = str1[5:30] + “5“ + str1[1:3] + “1“ + str1[36: 39]
a = s[5:] + s[4:]
c = s[4:] + a[3:]
return md5(c)[6:22]
def makeKey_2(str1):
s = str1[5:30] + str1[1:3] + “1“ + str1[36: 39]
a = s[5:] + s[4:]
b = md5(a[6:])
c = s[4:] + b
return md5(c)[1:17]
def makeKey_3(str1):
s = str1[5:30] + str1[36: 39]
a = s[5:] + s[7:]
b = strToLongEn2(s[4:] 5)
c = str(b) + a[1:]
return md5(c)[1:17]
def makeKey_4(str1):
s = str1[2:27] + str1[36: 39]
a = s[12:] + s[4:]
b = strToLongEn(s[4:] 13)
c = str(b) + a[2:]
return md5(c)[1:17]
def makeKey_5(str1):
s = str1[2:27] + str1[36: 39]
a = s[12:] + s[4:]
b = strToLongEn(s[4:] 2)
c = str(b) + a[2:]
return md5(c)[3:19]
def makeKey_6(str1):
s = str1[2:27] + str1[30: 33]
a = s[1:] + s[4:]
b = strToLongEn2(s[4:] 3)
c = str(b) + a[2:]
return md5(c)[10:26]
def makeKey_7(str1):
s = str1[2:27] + str1[36: 39]
a = s[2:] + s[6:12]
b = strToLongEn3(s[2:] 11)
c = str(b) + a[2:]
return md5(c)[6:22]
def makeKey_8(str1):
s = str1[2:27] + str1[36: 39]
a = s[12:] + s[4:]
b = strToLongEn(s[4:] 13)
d = b64(a) # ....
c = str(b) + d[2:]
return md5(c)[1:17]
def makeKey_9(str1):
s = str1[2:27] + str1[36: 39]
a = s[12:] + s[4:]
b = b64(s[4:]) # ....
c = b + a[2:]
return md5(c)[7:23]
def makeKey_10(str1):
s = str1[5:27] + str1[12: 15]
return md5(s)[9:25]
def makeKey_11(str1):
s = str1[5:30] + “5whq“ + str1[1:3] + “1“ + str1[36:39]
a = s[10:] + s[4:]
c = s[4:] + a[3:]
return md5(c)[6: 22]
def makeKey_12(str1):
s = str1[5:30] + str1[1: 3] + “1“ + str1[36: 39]
a = s[5:] + s[4:]
b = strToLongEn3(a[6:] 45)
c = s[4:] + str(b)
return md5(c)[1:17]
def makeKey_13(str1):
s = str1[5:30] + str1[36: 39]
a = md5(s[4:] + “5“)
b = s[5:] + s[7:]
c = a + b[1:]
return md5(c)[1:17]
def makeKey_14(str1):
s = str1[2:27] + str1[16: 19]
a = strToLongEn2(s[4:] 2)
b = s[12:] + s[4:]
c = str(a) + b[2:]
return md5(c)[11:27]
def makeKey_15(str1):
s = str1[2:27] + str1[36: 39]
a = strToLongEn3(s[4:] 2)
b = s[12:] + s[4:]
c = str(a
相关资源
- CpuMemSets在Linux操作系统中的实现
- Python学习全系列教程永久可用
- 蓝奏云批量上传工具.zip
- python书籍 PDF
- 老男孩python项目实战
- Python.rar99111
- decision_tree_v2.py
- Python绝技运用Python成为顶级黑客.pdf
- python小波包文档及论文.zip
- Python黑帽子(黑客与渗透测试编程之
- FlaskWeb开发:基于Python的Web应用开发实
- Python基础教程第3版中英文源码.rar
- python数据结构与算法中文版.zip
- Python-冲顶大会芝士超人西瓜视频头脑
- time_series_forecasting_with_python.zip
- Python基础教程第三版PDF高清可复制.
- python编程从入门到实践.zip237878
- FlaskWeb开发:Python基于Web应用开发实战
- pythonBCRMDSJ.mobi
- 量化交易之路用Python做股票量化分析
- PYTHON自然语言处理中文版.pdf
- Python基础教程(第3版).rar
- GRAYHATPYTHON高清.英文.书签版.pdf
- Python简明教程第四版.rar
- Python编程:从入门到实践带书签完整
- Python基础教程(第3版).pdf109608
- vamei-从Python开始学编程.pdf
- 利用Python进行数据分析.pdf
- 小甲鱼零基础学python课后习题和答案
- Python编程:从入门到实践-PythonCrashC
评论
共有 条评论