myeclipse8.5注册码怎么用_java生成不重复验证码

myeclipse8.5注册码怎么用_java生成不重复验证码注册码:用户名:myeclipse5.5注册码:zLR7ZL-655444-60536056302480798注册机代码:importjava.io.BufferedReader;importjava.io.IOException;importjava.io.InputStreamReader;importjava.io.PrintStream;


Jetbrains全系列IDE稳定放心使用

注册码:

用户名: myeclipse5.5

注册码: zLR7ZL-655444-60536056302480798

注册机代码:

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.io.PrintStream;

import java.text.DecimalFormat;

import java.text.NumberFormat;

import java.text.SimpleDateFormat;

import java.util.Calendar;

public class MyEclipseRegister{

private static final String L = “Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.”;

public static void main(String[] args){

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    String userId = null;

    int intLicenseNum = 1;

    String strLicenseNum = null;

    boolean bProFlag = true;

    String strProFlag = null;

    while ((userId == null) || (“”.equals(userId.trim()))) {

      System.out.print(“用户名: “);

      try {

        userId = br.readLine();

      }

      catch (IOException ioe1){

      }

    }

    System.out.print(“注册码可用的用户数量(默认 1, 最大 999): “);

    try {

      strLicenseNum = br.readLine();

    }

    catch (IOException ioe2)

    {

    }

    Object nf = new DecimalFormat(“000”);

    if ((strLicenseNum == null) || (“”.equals(strLicenseNum.trim())))

      strLicenseNum = ((NumberFormat)nf).format(intLicenseNum);

    else {

      strLicenseNum = ((NumberFormat)nf).format(Integer.parseInt(strLicenseNum));

    }

    System.out.print(“个人版 或 标准版(默认 个人版, n 标准版): “);

    try {

      strProFlag = br.readLine();

    }

    catch (IOException ioe3) {

    }

    if ((strProFlag != null) && (!(“”.equals(strProFlag.trim())))) {

      bProFlag = false;

    }

    Calendar cal = Calendar.getInstance();

    cal.add(1, 2);

    cal.add(6, -1);

    SimpleDateFormat sdf = new SimpleDateFormat(“yyMMdd”);

    String need = userId.substring(0, 1) + “Y” +

      ((bProFlag) ? “E3MP” : “E2MY”) + “-100” + strLicenseNum + “-” +

      sdf.format(cal.getTime()) + “0”;

    String dx = need + “Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.” + userId;

    int suf = decode(dx);

    String code = need + suf;

    System.out.println(“注册码: ” + change(code));

}

static int decode(String s) {

    int i = 0;

    char[] ac = s.toCharArray();

    int j = 0;

    for (int k = ac.length; j < k; ++j)

      i = 31 * i + ac[j];

    return Math.abs(i);

  }

  static String change(String s) {

    if ((s == null) || (s.length() == 0))

      return s;

    byte[] abyte0 = s.getBytes();

    char[] ac = new char[s.length()];

    int i = 0;

    for (int k = abyte0.length; i < k; ++i) {

      int j = abyte0[i];

      if ((j >= 48) && (j <= 57))

        j = (j – 48 + 5) % 10 + 48;

      else if ((j >= 65) && (j <= 90))

        j = (j – 65 + 13) % 26 + 65;

      else if ((j >= 97) && (j <= 122))

        j = (j – 97 + 13) % 26 + 97;

      ac[i] = (char)j;

    }

    return String.valueOf(ac);

  }

}

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/187509.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长

相关推荐

  • 电脑蓝屏错误代码0x000000ED_0x00000019蓝屏win7

    电脑蓝屏错误代码0x000000ED_0x00000019蓝屏win7相信大家都遇到过电脑蓝屏的情况,而且蓝屏故障是一件非常麻烦的事情,前不久小编电脑出现蓝屏并且提示错误代码是0x000000BE,很多用户可能会直接选择重装系统,其实不用这么麻烦,出现0x000000BE很有可能是硬件设备驱动程序存在BUG或安装不正确引起,具体一起来看看。解决方法:在开机过程中按下f8键进入Windows高级启动菜单,进入安全模式,也许会有改善。再重启电脑,继续按F8键,此时可以选…

    2022年10月8日
  • 手把手教你实现一个微信自动回复机器人「建议收藏」

    手把手教你实现一个微信自动回复机器人「建议收藏」RebateBot返利机器人项目地址项目描述关键词:返利微信阿里妈妈机器人跨平台返利机器人,基于微信建立机器人通道与用户通过聊天快速生成返利链接利用闲置微信和极小的电脑性能开启24小时无人轮值返利机器人购物只需要发送链接给机器人,机器人能马上给你回复优惠价格及链接功能实现微信机器人这个模块在这里可以看到最新的代码微信机器人[x]消息回调[x]自动回…

    2022年10月1日
  • JAVA导出EXCEL实现

    JAVA导出EXCEL实现JAVA导出EXCEL实现

    2022年6月29日
  • 团队项目总结[通俗易懂]

    团队项目总结[通俗易懂]设想和目标1.我们的软件要解决什么问题?是否定义得很清楚?是否对典型用户和典型场景有清晰的描述?我们的软件要解决的就是让学生们可以自由的处理他们不想要但并未失去价值的东西;并且对典型用户和典型场景

    2022年7月2日
  • 孤立的SQL用户

    孤立的SQL用户

    2021年11月26日
  • Java过滤器与SpringMVC拦截器之间的关系与区别[通俗易懂]

    今天学习和认识了一下,过滤器和SpringMVC的拦截器的区别,学到了不少的东西,以前一直以为拦截器就是过滤器实现的,现在想想还真是一种错误啊,而且看的比较粗浅,没有一个全局而又细致的认识,由于已至深夜,时间原因,我就把一些网友的观点重点摘录下来,大家仔细看后也一定会有一个比较新的认识(在此非常感谢那些大牛们的无私奉献,分享他们的经验与心得,才能让像我这样的小白有机会站一下你们这些巨人的肩膀,才能

    2022年4月12日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号