这个是代码片,直接上代码
先转token
#先转token
def TKaryy(token):
arr = []
i = 0
while i < len(token):
a = int(token[i], 16)
a = a << 4
b = int(token[i + 1], 16)
c = a + b
i = i + 2
if (c < 128):
arr.append(c)
elif i > 32:
break
else:
c = c
arr.append(c)
return arr
#计算时间
time2=timeDay()
xh=list(reversed(intToBytes(uid, 6)))
data3=time2+xh+[0,0]
时间函数文章来源:https://www.toymoban.com/news/detail-530226.html
def timeDay() :
timeDay= []
dt = datetime.now()
timeDay.append(0)
timeDay.append(20)
timeDay.append(dt.year % 10)
timeDay.append(dt.month - 1)
timeDay.append(dt.day)
timeDay.append(dt.hour)
timeDay.append(dt.minute)
timeDay.append(0)
return timeDay
转字节数组文章来源地址https://www.toymoban.com/news/detail-530226.html
# intToBytes
def intToBytes(value, length):
到了这里,关于某易将军令口令纯算法还原py篇的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!