Data Types

There are several types of preferences, some of which are more common than others. The four basic types are:

  • integer
  • double (double-precision real number)
  • character string
  • boolean (with possible values of TRUE and FALSE)

Other types are:

  • password (see Password Data Type)
  • lists made from the four basic types:
    • integer list
    • double list
    • string list
    • enum (a string list with a defined set of values)
    • boolean list

A list is an ordered set of zero or more items of the appropriate type. Each of these data types has a specific syntax associated with it for performing an assignment. The syntax varies depending on the assignment mechanism.

Password Data Type

The password data type is used for preferences that contain a password. For security reasons, password values are automatically encrypted before storing them in the preferences file. It is difficult (but not impossible) to decrypt the value of a password preference.

Encrypted passwords appear in the Preferences dialog box and in the preferences file as a case-sensitive string of characters preceded by "op_password:" and, possibly, terminated by "=" characters. For example:

	op_password:X8GUO0l72t5eX6uywantkQ==

If you enter a clear text password directly into the preferences file, the password is automatically encrypted the next time it reads the prefs_file file (at program start up).

Note: Clear-text passwords must never begin with the string "op_password:".