浏览 2388 次
|
该帖已经被评为隐藏帖
|
|
|---|---|
| 作者 | 正文 |
|
最后更新时间:2008-03-13 关键字: aptana 1.1 破解
昨晚本来想网上找一个省事,发现没有,就自己搞搞。
给出源码和编译成java 1.5的类,想省事的人拿着类替换一下即可 源码
package com.aptana.ide.core.licensing;
import java.util.Calendar;
import java.util.TimeZone;
//crack by lizhou
public final class ClientKey
{
private ClientKey()
{
this.type = 0;
this.email = "Cracker@aptana.com";
this.expiration = 31536000000000L;
}
public static ClientKey decrypt(String encrypted, String email)
{
return new ClientKey();
}
public boolean isCloseToExpiring()
{
return false;
}
public boolean isValid()
{
return true;
}
public boolean isCloseToMatching()
{
return false;
}
public boolean isExpired()
{
return false;
}
public String getEmail()
{
return email;
}
public Calendar getExpiration()
{
Calendar expirationCal = Calendar.getInstance(GMT);
expirationCal.setTimeInMillis(expiration);
return expirationCal;
}
public boolean isTrial()
{
return false;
}
public boolean isPro()
{
return true;
}
public boolean shouldProPluginsRun()
{
return true;
}
public static String trimEncryptedLicense(String encrypted)
{
String newEncrypted = encrypted;
newEncrypted = newEncrypted.trim();
newEncrypted = newEncrypted.replaceAll("--begin-aptana-license--", "");
newEncrypted = newEncrypted.replaceAll("--end-aptana-license--", "");
newEncrypted = newEncrypted.replaceAll("\\s+", "");
return newEncrypted;
}
public static final String BEGIN_LICENSE_MARKER = "--begin-aptana-license--";
public static final String END_LICENSE_MARKER = "--end-aptana-license--";
private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
/* private static final String EMAILS_NON_MATCHING = "EMAILS_NON_MATCHING";
private static final int PRO = 0;
private static final int TRIAL = 1;
*/
private String email;
private long expiration;
private int type;
}
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |


