博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
wing ide破解
阅读量:4695 次
发布时间:2019-06-09

本文共 1065 字,大约阅读时间需要 3 分钟。

1 LicenseID='CN123-12345-12345-67891' 2 # RequestCode='RL634-8363J-X7E8K-95XD3'  3 RequestCode = 'RW61C-NN6CR-HY7GG-36QL8'    # 注意此处的RequestCode 4 import hashlib 5 B16 = '0123456789ABCDEF' 6 B30 = '123456789ABCDEFGHJKLMNPQRTVWXY' 7 def B(n,f,t): 8   xx = 0 9   for d in str(n):10     xx = xx * len(f) + f.index(d)11   res = ''12   while xx > 0:13     res=t[int(xx%len(t))]+res14     xx//=len(t)15   return res16 def S(D):17   r = B(''.join([c for i,c in enumerate(D) if i//2*2==i]),B16,B30)18   while len(r) < 17:19     r = '1' + r20   return r21 def A(c):22   return c[:5]+'-'+c[5:10]+'-'+c[10:15]+'-'+c[15:]23 h = hashlib.sha1()24 h.update(RequestCode.encode('utf-8')+LicenseID.encode('utf-8'))25 lichash=A(RequestCode[:3]+S(h.hexdigest().upper()) )26 data=[23,161,47,9]27 tmp=028 realcode=''29 for i in data:30   for j in lichash:31     tmp=(tmp*i+ord(j))&0xFFFFF32   realcode+=format(tmp,'=05X')33   tmp=034 D=B(realcode,B16,B30)35 while len(D) < 17:36   D = '1' + D37 print("The Activation Code is: "+A('AXX'+D))

 

转载于:https://www.cnblogs.com/Rvin/p/9429933.html

你可能感兴趣的文章
自定义 directive pagination
查看>>
foj 2111 Problem 2111 Min Number
查看>>
poj 3415
查看>>
《MVC+EF》——用DBFirst创建ADO.NET实体数据模型和对象关系映射
查看>>
day68—angularJS学习笔记之-过滤器
查看>>
redis持久化RDB和AOF-转载
查看>>
DataTable 使用LINQ后 ,转换JSON问题
查看>>
DDOS 总结
查看>>
linux socket高性能服务器处理框架
查看>>
处理:Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY error: Failed dependencies:
查看>>
12、Node.js 路由
查看>>
php.ini详解(转)
查看>>
mysql 分表
查看>>
导出为XLS
查看>>
hashmap和hashtable的区别?
查看>>
Java 并发:Executor
查看>>
luogu P4491 [HAOI2018]染色
查看>>
[转]基于Python的接口测试框架
查看>>
js 滚动页面
查看>>
先填充在缩放和先缩放后填充的区别
查看>>