当前位置:   article > 正文

FinalSheel 激活专业版 高级版,适用于全部版本_finalshell 激活

finalshell 激活

blog.csdnimg.cn/direct/e59a8f9ed99742418806d8a97223d5e3.png)
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

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

导入依赖

添加这个依赖就行
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.68</version>
</dependency>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/793864
推荐阅读
相关标签
  

闽ICP备14008679号