I have a few Portuguese strings in my STR_ENCRYPT macro but some of them are not recognize when I click on the STR_ENCRYPT macro in the "Protection Macros" panel. What's wrong?

<< Click to Display Table of Contents >>

Navigation:  Themida > FAQ > Macros >

I have a few Portuguese strings in my STR_ENCRYPT macro but some of them are not recognize when I click on the STR_ENCRYPT macro in the "Protection Macros" panel. What's wrong?

Themida searches for printable chars to be able to determine if a pointer to "something" is a string or not. As your string might contain special Portuguese characters the internal function to determine if a specific char is printable might fail.

 

You can change the current locale, so Themida will be able to find your Portuguese string.

 

1) Edit your Themida.ini file and add under the [General] section add the following entry:

 

StrEncryptLocale = Portuguese

 

2) Restart Themida and go to the "Protection Macros" panel and click on your STR_ENCRYPT macro and make sure that your Portuguese strings can now be recognized

 

You can change the "StrEncryptLocale" entry for a different language, like "Russian", "Spanish", etc.