Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » Database configuration » File locations and installation settings » Registry and INI files


Hiding the contents of an .ini file

To protect passwords or other information in an .ini file, you can hide the contents of the file using simple encryption and the File Hiding utility.


There are no prerequisites for this task.

Context and remarks

SQL Anywhere expects an .ini file to have a particular name. When you want to add simple encryption to a file whose name is important (such as saldap.ini), you must save a copy of the original file with a different name. If you do not keep a copy of the original file, then you cannot modify the contents of the file once it has been obfuscated.


You should not add simple encryption to the system information file (named .odbc.ini by default) with the File Hiding utility (dbfhide) on Unix unless you will only be using SQL Anywhere data sources. If you plan to use other data sources (for example, for MobiLink synchronization), then obfuscating the contents of the system information file may prevent other drivers from functioning properly.

  1. Save the file with a different name.

    rename saldap.ini
  2. Obfuscate the file with the File Hiding utility, giving the obfuscated file the required file name.

    dbfhide saldap.ini
  3. Protect the file using file system or operating system protection, or store the file in a secure location.

    To make a change to the saldap.ini file, edit the file and repeat step 2.


The contents of the .ini file are hidden.

 See also