Encrypted Parameters

You may designate that the value of a parameter, as stored in the tag file, shall be encrypted. This does not encrypt the parameter in any VTScada user interface element. The purpose is to block unauthorized inquiries on the part of persons who do not have access to the application, but do have access to your server.

Encrypted parameters can only be defined for your custom tags. They are not used in any VTScada tag. Note that encryption is not applied retroactively if you modify your tag template file. Only tags created after the encryption flag has been set will have encrypted parameters.

In the parameter definition, the encryption flag is set as a Boolean in the TagField definition. In the following example, the parameter, "Password" is set to be encrypted:

(
   Name         <:TagField("SQL_VARCHAR(255)"):>;
   Area         <:TagField("SQL_LONGVARCHAR"):>;
   Description  <:TagField("SQL_LONGVARCHAR"):>;
   Password     <:TagField("SQL_LONGVARCHAR", "", Invalid, TRUE):>;
   HelpKey      <:TagField("SQL_LONGVARCHAR"):>;
)

Within VTScada, the value of "Password" will be visible unencrypted. (It is up to you to protect it in the user interface.) In the tag file, the value of Password will be stored encrypted.