Difference between revisions of "ENCRYPT"

From Lianjapedia
Jump to: navigation, search
Line 22: Line 22:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:DES3 Encryption]]
+
[[Category:Data Commands]]
[[Category:DES3 Encryption Commands]]
+
[[Category:Security]]
+
[[Category:Security Commands]]
+

Revision as of 08:05, 7 December 2012

Purpose

Encrypt the specified table or tables

Syntax

ENCRYPT <.dbf> | <skeleton> KEY <expC1>

See Also

APPEND FROM, COPY FILE, COPY STRUCTURE, COPY, DECRYPT, DIR, SET ENCRYPTION, USE

Description

The ENCRYPT command is used to encrypt the data in the specified table, <.dbf> or tables matching the <skeleton>. If the <skeleton> syntax is used, then all matching tables will be given the same encryption key. The <expC1> must contain a three part comma-separated key. The key may optionally be enclosed in angled brackets. Each part of the key can be a maximum of 8 characters. The key is DES3 encrypted and stored in a .dkf file with the same basename as the table. After encryption, the three parts of the key must be specified correctly before the table can be accessed.

Example

encrypt accounts key "key1,key2,key3"
encrypt salaries key "<key_1,key_2,key_3>"
 
// encrypt all .dbf files in the directory
encrypt *.dbf key "key1,key2,key3"