Babel Obfuscator V8.3.0.0 exception thrown after obfuscating a C# .exe file

193 Views Asked by At

I use Babel Obfuscator V8.3.0.0 to obfuscate my C# application. The problem is that when I obfuscate it, it throws an exception on the line :

char[] cInvalidVolumeNameFATChars = { '*', '?', '.', ',', ';', ':', '/', '|', '+', '=', '<', '>', '[', ']' };

CryptographicException : Bad Data

Here are my settings : enter image description here

Which parameter do I have to change in Babel for not to get that exception ?

Thanks per advance for your help :)

1

There are 1 best solutions below

0
On BEST ANSWER

I found the solution : In Babel the problem is due to "Encrypt Values" --> "array", by unchecking it and still obfuscating there are no more "CryptographicException : Bad Data" exceptions.

Babel config :

So in the code I used a "string" instead of a "char[]" and I kept "Encrypt values : array" checked, then used "'string'.ToCharArray()".

string sInvalidVolumeNameFATChars = "*?.,;:/|+=<>[]";

(...)

sInvalidVolumeNameFATChars.ToCharArray()