Dotfuscator User's Guide
PreMark Elements

The premark section contains sub-elements that allow you to specify which input assemblies you would like to watermark, a passphrase to use if you are encrypting your watermark string, a character encoding to use, and the watermark string itself.

Assemblies to Watermark

The assemblies you want to watermark are listed using an <assemblylist> element. Each must also be listed as an input assembly.

<passphrase>

The <passphrase> element specifies the passphrase to use when encrypting the watermark string. The watermark string will be encrypted if you have set the usepassphrase option and the passphrase itself is set.

<encoding>

The <encoding> element specifies the character encoding, or character map, to use when encoding the watermark string. The <encoding> element has a name attribute that you can set to a supported character map. Character maps and their names are described in the Character Maps section.

<watermark>

The <watermark> element specifies the string that you want to apply to the selected assemblies. The string is first encoded using the character map, then optionally encrypted.

Example

This example configures PreMark to apply a watermark to MyApp.exe. The watermark string, MY WATERMARK is first encoded using the 6bit-a character map, then encrypted with the passphrase "mommy".

PreMark Elements
Copy Code
  <premark>
    <option>usepassphrase</option>
    <option>truncatestring</option>
    <assemblylist>
      <assembly>
        <file dir="${configdir}" name="MyApp.exe" />
      </assembly>
    </assemblylist>
    <passphrase>mommy</passphrase>
    <encoding name="6bit-a" />
    <watermark>MY WATERMARK</watermark>
  </premark>

 

See Also

Watermarking

 

 


© 2016 PreEmptive Solutions, LLC. All Rights Reserved.

www.preemptive.com