WingIDE 激活方式
来源:互联网 发布:手机淘宝怎么改评论 编辑:程序博客网 时间:2024/06/06 10:05
激活代码CalcActivationCode.py
import shaimport stringBASE2 = '01'BASE10 = '0123456789'BASE16 = '0123456789ABCDEF'BASE30 = '123456789ABCDEFGHJKLMNPQRTVWXY'BASE36 = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'BASE62 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz'BASEMAX = string.printabledef BaseConvert(number, fromdigits, todigits, ignore_negative = True): """ converts a "number" between two bases of arbitrary digits The input number is assumed to be a string of digits from the fromdigits string (which is in order of smallest to largest digit). The return value is a string of elements from todigits (ordered in the same way). The input and output bases are determined from the lengths of the digit strings. Negative signs are passed through. decimal to binary >>> baseconvert(555,BASE10,BASE2) '1000101011' binary to decimal >>> baseconvert('1000101011',BASE2,BASE10) '555' integer interpreted as binary and converted to decimal (!) >>> baseconvert(1000101011,BASE2,BASE10) '555' base10 to base4 >>> baseconvert(99,BASE10,"0123") '1203' base4 to base5 (with alphabetic digits) >>> baseconvert(1203,"0123","abcde") 'dee' base5, alpha digits back to base 10 >>> baseconvert('dee',"abcde",BASE10) '99' decimal to a base that uses A-Z0-9a-z for its digits >>> baseconvert(257938572394L,BASE10,BASE62) 'E78Lxik' ..convert back >>> baseconvert('E78Lxik',BASE62,BASE10) '257938572394' binary to a base with words for digits (the function cannot convert this back) >>> baseconvert('1101',BASE2,('Zero','One')) 'OneOneZeroOne' """ if not ignore_negative and str(number)[0] == '-': number = str(number)[1:] neg = 1 else: neg = 0 x = long(0) for digit in str(number): x = x * len(fromdigits) + fromdigits.index(digit) res = '' while x > 0: digit = x % len(todigits) res = todigits[digit] + res x /= len(todigits) if neg: res = '-' + res return resdef SHAToBase30(digest): """Convert from a hexdigest form SHA hash into a more compact and ergonomic BASE30 representation. This results in a 17 'digit' number.""" tdigest = ''.join([ c for i, c in enumerate(digest) if i / 2 * 2 == i ]) result = BaseConvert(tdigest, BASE16, BASE30) while len(result) < 17: result = '1' + result return resultdef AddHyphens(code): """Insert hyphens into given license id or activation request to make it easier to read""" return code[:5] + '-' + code[5:10] + '-' + code[10:15] + '-' + code[15:]LicenseID='TNX1D-JKH7A-NYP9Q-25EJ8'#Copy the Request Code from the dialogRequestCode='RW52L-91NWW-PXHW2-E1JDD'hasher = sha.new()hasher.update(RequestCode)hasher.update(LicenseID)digest = hasher.hexdigest().upper()lichash = RequestCode[:3] + SHAToBase30(digest)lichash=AddHyphens(lichash)#Calculate the Activation Codedata=[7,123,23,87]tmp=0realcode=''for i in data: for j in lichash: tmp=(tmp*i+ord(j))&0xFFFFF realcode+=format(tmp,'=05X') tmp=0act30=BaseConvert(realcode,BASE16,BASE30)while len(act30) < 17: act30 = '1' + act30act30='AXX'+act30act30=AddHyphens(act30)print "The Activation Code is: "+act30
安装WingIDE5.0 Python2.7,将python加入环境变量
输入CN123-12345-12345-12345获取requestCode码,修改requestCode运行填入第二步
0 0
- WingIDE 激活方式
- wingIDE 5.* 激活程序
- myeclipse10.0激活方式
- 纪录激活方式
- CLion的激活方式
- windows 10 激活方式
- PHPStorm 2016.2激活方式
- PhpStorm 10.0 激活方式
- WebStorm的激活方式
- IntelliJ IDEA激活方式
- pycharm2017激活方式
- phpStorm激活方式
- pycharm2016.3激活方式
- idea2017激活方式
- Clion激活方式
- idea激活方式详解
- Idea激活方式
- WebStorm 2017激活方式
- Prime Cryptarithm
- 《Improved Recurrent Neural Networks for Session-based Recommendations》 DLRS 2016 阅读笔记
- Altium Designer 从导入DXF文件,并转换成板框
- Android View中onMeasure的相关解析
- swiper
- WingIDE 激活方式
- 保证分布式系统数据一致性的6种方案
- spring web项目mongoTemplate配置
- Java 7之多线程第8篇
- Android开发中23种设计模式——简介
- 循环打开关闭camera 测试
- 背景透明 文本不透明
- Hive总结(四)hive安装记录
- Sql server 2008 r2 无法连接到(local)