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.
Prerequisites
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.
Save the file with a different name.
rename saldap.ini saldap.ini.org |
Obfuscate the file with the File Hiding utility, giving the obfuscated file the required file name.
dbfhide saldap.ini.org saldap.ini |
Protect the saldap.ini.org 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 saldap.ini.org file and repeat step 2.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |