http://blog.csdn.net/u011128775/article/details/70140255
1.用记事本打开wingide6.py(下面有源码和下载地址) ,修改LiscenseID 随便修改哪一位 ,先不要急着关闭wingide6.py,待会还需要修改!
2.打开wingide6把修改好的LiscenseID填入第三个(LiscenseID最好不要和图片上一样,否则可能导致激活失败),点击Continue
3.选择第二个,复制Request到脚本中替换脚本中的Request code,这时候可以关闭脚本了,然后用python运行wingide6.py
4.用python运行wingide6.py ,把算出的Code复制到上图第二个provideed activation key here 下面的输入框中,点击continue ,大功告成!
下面是wingide6.py脚本源码
- #!/usr/bin/env python3
- LicenseID='CN123-12345-12345-67891'
- RequestCode='RL634-8363J-X7E8K-95XD3'
- import hashlib
- B16 = '0123456789ABCDEF'
- B30 = '123456789ABCDEFGHJKLMNPQRTVWXY'
- def B(n,f,t):
- xx = 0
- for d in str(n):
- xx = xx * len(f) + f.index(d)
- res = ''
- while xx > 0:
- res=t[int(xx%len(t))]+res
- xx//=len(t)
- return res
- def S(D):
- r = B(''.join([c for i,c in enumerate(D) if i//2*2==i]),B16,B30)
- while len(r) < 17:
- r = '1' + r
- return r
- def A(c):
- return c[:5]+'-'+c[5:10]+'-'+c[10:15]+'-'+c[15:]
- h = hashlib.sha1()
- h.update(RequestCode.encode('utf-8')+LicenseID.encode('utf-8'))
- lichash=A(RequestCode[:3]+S(h.hexdigest().upper()) )
- data=[23,161,47,9]
- tmp=0
- realcode=''
- for i in data:
- for j in lichash:
- tmp=(tmp*i+ord(j))&0xFFFFF
- realcode+=format(tmp,'=05X')
- tmp=0
- D=B(realcode,B16,B30)
- while len(D) < 17:
- D = '1' + D
- print("The Activation Code is: "+A('AXX'+D))
也可以去下载: http://download.csdn.net/detail/u011128775/9811384