目标C和类转储保护 [英] Obj C and class-dump protection
问题描述
我知道很容易破解Mach-O可执行文件,我只是想对类转储"工具进行简单的保护.是否有任何工具或XCode插件可以将所有类名和类函数更改为不太可读的内容(例如符号和数字的随机组合)?
I understand that it is easy to hack Mach-O executable, I just want simple protection against "class-dump" tool. Is there any tool or XCode plugin that can change all classes names and class functions to something not very readable (like random combination of symbols and numbers)?
坦率地说,这就是我所需要的全部保护.
Frankly that's all protection I need.
推荐答案
我在此博客文章中对此做了一些介绍,但总而言之:您可以通过在运行时注册方法或将其保留为函数来避免方法出现在class-dump
中.
I wrote a bit about this in this blog post, but to summarise: you can avoid having methods appearing in class-dump
by registering them at runtime, or just keeping them as functions.
If really all you want to do is rename the classes/methods, you can use the tops
command-line tool or Xcode's refactoring feature.
这篇关于目标C和类转储保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!