当前位置:   article > 正文

FinalShell离线激活

finalshell离线激活

一、创建机器码

二、执行程序生成高级版激活码、专业版激活码

  1. package com.test;
  2. import java.io.IOException;
  3. import java.security.MessageDigest;
  4. import java.security.NoSuchAlgorithmException;
  5. import java.util.Scanner;
  6. public class FinalShell {
  7. public static void main(String[] args) throws NoSuchAlgorithmException, IOException {
  8. System.out.print("请输入FinalShell的离线机器码:");
  9. @SuppressWarnings("resource")
  10. Scanner reader = new Scanner(System.in);
  11. String machineCode = reader.nextLine();
  12. generateKey(machineCode);
  13. }
  14. public static void generateKey(String hardwareId) throws NoSuchAlgorithmException {
  15. String proKey = transform(61305 + hardwareId + 8552);
  16. String pfKey = transform(2356 + hardwareId + 13593);
  17. System.out.println("请将此行复制到离线激活中-高级版:" + proKey);
  18. System.out.println("请将此行复制到离线激活中-专业版:" + pfKey);
  19. }
  20. public static String transform(String str) throws NoSuchAlgorithmException {
  21. @SuppressWarnings("unused")
  22. String md5 = hashMD5(str);
  23. return hashMD5(str).substring(8, 24);
  24. }
  25. public static String hashMD5(String str) throws NoSuchAlgorithmException {
  26. MessageDigest digest = MessageDigest.getInstance("MD5");
  27. byte[] hashed = digest.digest(str.getBytes());
  28. StringBuilder sb = new StringBuilder();
  29. for (byte b : hashed) {
  30. int len = b & 0xFF;
  31. if (len < 16) {
  32. sb.append("0");
  33. }
  34. sb.append(Integer.toHexString(len));
  35. }
  36. return sb.toString();
  37. }
  38. }

 

三、点击激活,即可完成离线激活。

     (需要注意的是离线激活再次进入FinalShell需要重新激活)

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小桥流水78/article/detail/793856
推荐阅读
相关标签
  

闽ICP备14008679号