Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to obfuscate RTTI data?

Tags:

c++

rtti

My project currently is compiled using -fno-rtti to prevent g++ from generating RTTI data in the binary. Now I am at some point where I need RTTI. Is it possible to randomize the RTTI data so the names will not be readable to everyone? Using g++/clang.

like image 462
Nidhoegger Avatar asked Nov 09 '22 18:11

Nidhoegger


1 Answers

No.

If the RTTI data is readable to the computer, then a human can read it.
If not, you can leave it disabled.

Just avoid writing passwords in class names and you should be fine.

like image 123
Lightness Races in Orbit Avatar answered Nov 15 '22 13:11

Lightness Races in Orbit