当前位置:   article > 正文

【finalshell4.3.10(新版)版本激活】_finallshell 4.3.10激活

finallshell 4.3.10激活

依赖 
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.68</version>
</dependency>

在软件目录有这个jar

  1. import org.bouncycastle.jce.provider.BouncyCastleProvider;
  2. import java.nio.charset.StandardCharsets;
  3. import java.security.MessageDigest;
  4. import java.security.NoSuchAlgorithmException;
  5. import java.security.Security;
  6. import java.util.Scanner;
  7. /**
  8. * FinalShell 4.3.10(新版)专业版&高级版激活
  9. * @author 离山道寺biu
  10. * @date 2024/03/15
  11. */
  12. public class FinalShellUtil {
  13. static {
  14. Security.addProvider(new BouncyCastleProvider());
  15. }
  16. public static String md5(String msg) throws NoSuchAlgorithmException {
  17. MessageDigest md = MessageDigest.getInstance("MD5");
  18. byte[] hashBytes = md.digest(msg.getBytes(StandardCharsets.UTF_8));
  19. StringBuilder sb = new StringBuilder();
  20. for (byte b : hashBytes) {
  21. sb.append(String.format("%02x", b));
  22. }
  23. return sb.toString();
  24. }
  25. public static String keccak384(String msg) throws NoSuchAlgorithmException {
  26. MessageDigest md = MessageDigest.getInstance("Keccak-384");
  27. byte[] hashBytes = md.digest(msg.getBytes(StandardCharsets.UTF_8));
  28. StringBuilder sb = new StringBuilder();
  29. for (byte b : hashBytes) {
  30. sb.append(String.format("%02x", b));
  31. }
  32. return sb.toString();
  33. }
  34. public static void main(String[] args) {
  35. Scanner scanner = new Scanner(System.in);
  36. System.out.print("输入机器码: ");
  37. String code = scanner.nextLine();
  38. scanner.close();
  39. System.out.println("版本号 < 3.9.6 (旧版)");
  40. try {
  41. System.out.println("高级版: " + md5("61305" + code + "8552").substring(8, 24));
  42. System.out.println("专业版: " + md5("2356" + code + "13593").substring(8, 24));
  43. } catch (NoSuchAlgorithmException e) {
  44. e.printStackTrace();
  45. }
  46. System.out.println("版本号 >= 3.9.6 (新版)");
  47. try {
  48. System.out.println("高级版: " + keccak384(code + "hSf(78cvVlS5E").substring(12, 28));
  49. System.out.println("专业版: " + keccak384(code + "FF3Go(*Xvbb5s2").substring(12, 28));
  50. } catch (NoSuchAlgorithmException e) {
  51. e.printStackTrace();
  52. }
  53. }
  54. }

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

闽ICP备14008679号