You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.
Browsing with DnSpy, the string const Text in assembly 2 is untouched. If I change to readonly then it is properly obfuscated. I specified the constant elements to be protected as "SNPI".
Is this an bug or intended? Thanks.
The text was updated successfully, but these errors were encountered:
Yes this is intended. Const string is stored in metadata as literal fields, and their content cannot be encrypted then decrypted at runtime. Readonly string is initialized in CIL code, therefore could be encrypted by constant protection.
Hi,
Consider this code in two different assemblies (the StringTest is an extension method):
Assembly 1 (EXE)
Assembly 2 (DLL)
CRPROJ
Browsing with DnSpy, the string const Text in assembly 2 is untouched. If I change to readonly then it is properly obfuscated. I specified the constant elements to be protected as "SNPI".
Is this an bug or intended? Thanks.
The text was updated successfully, but these errors were encountered: