Is storing strings under managed c++ safer than unmanaged ?

Hello guys , So im working on a little project c++/cli and realized that if i put a string i wanna keep hidden to compile as unmanaged it can be found and edited by just a simple memory scan of my DLL, However if i put it to compile under managed c++ the string will appear something like sad@dsaop932u4 in a managed code reflector , So i think its better to hide strings under managed c++ , Am i right? or is there a downside? Or was i just using a bad reflector ? , Please advise.
With the managed code in C++\Cli all of your variables are divided into "Application Domains" which is kind of like a scope (I think). What you are seeing appended on to the end of your string there is basically name decoration designating it's appdomain.
Last edited on
Topic archived. No new replies allowed.