Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0终于可以用java 11了 #84

Closed
ucxl opened this issue Oct 28, 2022 · 3 comments
Closed

4.0终于可以用java 11了 #84

ucxl opened this issue Oct 28, 2022 · 3 comments

Comments

@ucxl
Copy link

ucxl commented Oct 28, 2022

4.0终于可以用java 11了,感谢作者大大!自定义的加密还不会弄防止mt一键解密

@MegatronKing
Copy link
Owner

@ucxl
Copy link
Author

ucxl commented Nov 1, 2022

用反射,ndk解密不适合,很多地方报错,比如db数据库初始化等等

private final Method descriptor = CustomStringFogImpl.class.getDeclaredMethods()[0];

public static String _decrypt(byte[] data, byte[] key) { return new String(xor(data, key), StandardCharsets.UTF_8);}

@Override
public String decrypt(byte[] data, byte[] key) {
    try {
        return (String) descriptor.invoke(null, data, key);
    } catch (ReflectiveOperationException e) {
        return null;
    }
}

@MegatronKing
Copy link
Owner

防止解密的讨论移至 #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants