obfuscateString()

The obfuscateString() method aspect performs compile-time obfuscation of string literals. Part of Elements' Obfuscation infrastructure, this is helpful to prevent string literals from being readable for someone inspecting the final executable.

To use it, simply surround a String Literal with a call to obfuscateString(), as shown below.

Example:

const superSecretString: String = ObfuscateString('This is private');
private static string superSecretString = ObfuscateString("This is private");
let superSecretString = obfuscateString("This is private")
final string superSecretString = ObfuscateString("This is private");

See Also