The encrypt-file command encrypts data in a specified file.
NOTE |
|
Syntax
encrypt-file filename{,data-file} |
Parameter(s)
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. |
Description
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
NOTE |
Once a file has been encrypted, data in the file remains encrypted on any subsequent file-saves, account-saves, incremental-saves and transaction-logging tapes. The only exceptions are:
As with all files, file access is determined using file update and retrieval locks (set using the file-access-setup command in the dm account). If you have the appropriate user key for a file, items in that file are automatically decrypted for read operations and encrypted for write operations. |
Example(s)
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. |
See Also