Directly into the theme, the following routines:
1. Select Manual Input License
License Number input: cn123-12345-12345-12345
2, in the next step, select the second item, copy the request code
3. Run the following script:
where Licenseid input: cn123-12345-12345-12345
Request code Input: The second step gets the value.
Get the activation code.
1 #coding = Utf-82 #!/usr/bin/env Python33 4Licenseid='cn123-12345-12345-12345'5Requestcode='Rw634-tec3q-6p859-n6pv4'6 7 ImportHashlib8B16 ='0123456789ABCDEF'9B30 ='123456789ABCDEFGHJKLMNPQRTVWXY'Ten defB (n,f,t): Onexx =0 A forDinchstr (n): -xx = xx * Len (f) +F.index (d) -res ="' the whileXX >0: -Res=t[int (Xx%len (t))]+Res -Xx//=len (t) - returnRes + defS (D): -R = B ("'. join ([C forI,cinchEnumerate (D)ifi//2*2==i]), B16,B30) + whileLen (R) < 17: AR ='1'+R at returnR - defA (c): - returnc[: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 ())) indata=[23,161,47,9] -tmp=0 toRealcode="' + forIinchData: - forJinchLichash: theTmp= (Tmp*i+ord (j)) &0xfffff *Realcode+=format (TMP,'=05x') $tmp=0Panax NotoginsengD=B (REALCODE,B16,B30) - whileLen (D) < 17: theD ='1'+D + Print("The Activation Code is:"+a ('AXX'+D))
Wing IDE 6.0 registration, Python 3.6 environment