天天看点

aptana 1的破解方法

找到com.aptana.ide.core_1.0.1.004323.jar文件

编译下面的文件并替换找上面包中的对应文件(在com.aptana.ide.core.licensing目录下)

修改位置见后面注释部分说明!

package com.aptana.ide.core.licensing;

import java.math.BigInteger;

import java.util.Calendar;

import java.util.TimeZone;

import java.util.zip.CRC32;

public final class ClientKey {

    private static class Decrypt {

        private BigInteger modulus;

        private BigInteger exponent;

        public String decrypt(String encrypted) {

            long crc32Value;

            byte bytes[];

            CRC32 crc32;

            if (encrypted == null) {

                encrypted = "";

            } else {

                encrypted = ClientKey.trimEncryptedLicense(encrypted);

            }

            BigInteger big = new BigInteger(encrypted);

            BigInteger decrypted = big.