Uses simple encryption to hide the contents of configuration files and initialization files.
dbfhide [ options ]original-configuration-file encrypted-configuration-file
Option | Description |
---|---|
-q | Runs in quiet mode—messages are not displayed. |
-w | Encrypts the file with an encryption API supplied by Microsoft. The file can only be used by SQL Anywhere database servers or tools on the same computer on which the file was encrypted. Only the user who encrypted the file can use the file. This option is only supported on Windows. |
-wm | Encrypts the file with an encryption API supplied by Microsoft. The file can only be used by SQL Anywhere database servers or tools on the same computer on which the file was encrypted. Any user on the computer where the file was encrypted can read the file. This option is only supported on Windows. |
original-configuration-file | Specifies the name of the original file. |
encrypted-configuration-file | Specifies a name for the new obfuscated file. |
Configuration files are used by some utilities to hold command line options. These options may contain a password. You can use the File Hiding utility to add simple encryption to configuration files, and to .ini files used by SQL Anywhere and its utilities, and thereby obfuscate the contents of the file. The original file will not be modified. Once you add simple encryption to a file, there is no way to remove it. To make changes to an obfuscated file, you must keep a copy of the original file that you can modify and obfuscate again.
For more information about using configuration files, see Using configuration files to store database server startup options.
For more information about encryption, see Keeping your data secure.
This utility does not accept the @data parameter to read in options from a configuration file.
Create a configuration file that starts the personal database server and the sample database. It should set a cache of 10 MB, and name this instance of the personal server Elora. The configuration file would be written as follows:
# Configuration file for server Elora -n Elora -c 10M samples-dir\demo.db |
(Note that lines beginning with # are treated as comments.)
For information about samples-dir, see Samples directory.
Name the file sample.txt. If you wanted to start the database using this configuration file, your command line would be:
dbeng12 @sample.txt |
Now, add simple encryption to the configuration.
dbfhide sample.txt encrypted_sample.txt |
Use the encrypted_sample.txt file to start a database.
dbsrv12 @encrypted_sample.txt |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |