The encrypt-file command encrypts data in a specified file.
To use this command, the OpenSSL libraries must be installed on your system (for Linux, the 32 bit OpenSSL libraries are required). If this command is run on a system without OpenSSL, the current process will stop, return to TCL, and the message Encryption libraries are not loaded will be displayed.
For Windows Only: The OpenSSL libraries must be present when restoring a save that contains encrypted data. Otherwise the restore process will terminate.
For Windows Only: Storing and encrypting files in the FSI:DM is not recommended and may produce unpredictable results.
encrypt-file filename{,data-file}
filename | Name of the file on which to apply encryption. The specified
file must already exist. To enable encryption, you must be logged
into the account in which the specified file exists. Note: Item-ids
and index keys are not encrypted. Additionally, only the data level
of the file system can be encrypted. You cannot encrypt the MD or
DICT of a file.
|
data-file | (Optional) Specifies which data-file in the file to encrypt. If not specified, the default data-file is encrypted. |
Encryption does not affect any existing file translates, indexes, bridges, triggers, and so on. These features will continue to function as expected. However, it should be noted that read and write operations on encrypted files are significantly slower than read and write operations on unencrypted files.
The sizes of encrypted items are approximately 1% (plus six characters) larger than unencrypted items. Be aware that LIST commands display decrypted item sizes whereas ISTAT and similar commands display encrypted item sizes
FSI file data is not saved encrypted on file-saves, account-saves, incremental-saves and transaction-logging tapes.
performing a t-dump on the file saves the data in its original plain-text format (unencrypted).
The example below encrypts the accounting file.
encrypt-file accounting File successfully encrypted.
The example below encrypts only the purchases data-file of the accounting file.
encrypt-file accounting,purchases File successfully encrypted.