Wing IDE 5 hack

Source: Internet
Author: User
Tags binary to decimal decimal to binary

Wing IDE Baidu Encyclopedia

1, the installation of Python, measured is Python 2.7.10;

2, create a new py file calcactivationcode.py (name oneself casually take);

3, calcactivationcode.py code is as follows:

#from the Licenseid quotation marks in this file to copy the ID to the Pasteboard, after the first run after installation, in the second option to enter this Licenseid, input, will give a request Code, After copying paste into the requestcode of this file after the quotation marks, and then run the program with Python to get the activation code, the Activation code copy and paste into the program registration interface. For systems that have successfully installed the previous version of 5.x, the installation is uninstalled and is activated by default. ImportshaImportstringBASE2=' on'BASE10='0123456789'BASE16='0123456789ABCDEF'BASE30='123456789ABCDEFGHJKLMNPQRTVWXY'BASE36='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'BASE62='abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz'Basemax=string.printabledefBaseconvert (number, fromdigits, todigits, ignore_negative =True):""" Converts a "number" between-bases of arbitrary digits the input number is assumed-be a string of digits fro M 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). The input and output bases is determined from the lengths of the digit strings.        Negative signs is passed through. Decimal to Binary >>> baseconvert (555,base10,base2) ' 1000101011 ' binary to decimal >>> b    Aseconvert (' 1000101011 ', base2,base10) ' 555 ' integer interpreted as binary and converted to decimal (!) >>> Baseconvert (1000101011,base2,base10) ' 555 ' base10 to Base4 >>> Baseconvert (99,base10, "0        123 ") ' 1203 ' Base4 to BASE5 (with alphabetic digits) >>> Baseconvert (1203," 0123 "," ABCDE ") ' Dee '  BASE5, alpha digits back to base >>> Baseconvert (' Dee ', "ABCDE", BASE10) ' 99 '      Decimal to a base, uses a-z0-9a-z for it digits >>> Baseconvert (257938572394l,base10,base62) ' E7 8Lxik '..  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  notIgnore_negative andSTR (number) [0] = ='-': number= str (number) [1:] Neg= 1Else: Neg=0 x=Long (0) forDigitinchStr (number): X= x * Len (fromdigits) +fromdigits.index (digit) Res="'     whileX >0:digit= x%Len (todigits) Res= Todigits[digit] +Res x/=Len (todigits)ifNeg:res='-'+ResreturnResdefSHAToBase30 (Digest):"""Convert from a hexdigest form SHA hash to a more compact and ergonomic BASE30 representation. This results in a ' digit ' number."""tdigest="'. join ([C forI, CinchEnumerate (Digest)ifI/2 * 2 = =i]) result=Baseconvert (Tdigest, BASE16, BASE30) whileLen (Result) < 17: Result='1'+resultreturnresultdefAddhyphens (code):"""Insert hyphens into given license ID or activation request to make it easier to read"""    returnCode[:5] +'-'+ Code[5:10] +'-'+ code[10:15] +'-'+ code[15:] Licenseid='ENX27-HWM6G-XYVFA-165VM'#Copy the Request Code from the dialog#requestcode= ' rw53c-amjrb-4384t-few65 '#from the Licenseid quotation marks in this file to copy the ID to the Pasteboard, after the first run after installation, in the second option to enter this Licenseid, input, will give a request Code, After copying paste into the requestcode of this file after the quotation marks, and then run the program with Python to get the activation code, the Activation code copy and paste into the program registration interface. Requestcode='rw51d-q4rhj-482h4-3t98c'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="' forIinchData: forJinchlichash:tmp= (Tmp*i+ord (j)) &0xfffffRealcode+=format (TMP,'=05x') TMP=0act30=Baseconvert (realcode,base16,base30) whileLen (ACT30) < 17: Act30='1'+Act30act30='AXX'+Act30act30=Addhyphens (ACT30)Print "The Activation Code is:"+act30

4, run calcactivationcode.py, get activation Code Activation code, input and can be activated, currently pro-Test 5.1.8

Wing IDE 5 hack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.