DEFAULT_ENCRYPTION_KEY_SET Function
Syntax
Arguments
- Key_Value
The default encryption value.
Description
Sets the default key to encrypt and decrypt tables
Discussion
DEFAULT_ENCRYPTION_KEY_SET() sets the default key that Alpha Anywhere will use to encrypt and decrypt tables. If the default encryption key is not set to the same key that was used to initially encrypt a table, the table's icon in the Control Panel is shown with a lock on it. Normally, you do not call DEFAULT_ENCRYPTION_KEY_SET() directly. If you have applied security to a database (by setting a logon password for the database), then when you open the database Alpha Anywhere decrypts the tables with DEFAULT_ENCRYPTION_KEY_SET() . If you have encrypted tables from the Tools > Security menu, when you open one of the encrypted tables, Alpha Anywhere does not prompt for a password. This is because Alpha Anywhere has already called DEFAULT_ENCRYPTION_KEY_SET() and decrypted the table.
Example
'Sets the encryption key to "Fish" default_encryption_key_set("fish")
Limitations
Desktop applications only.
See Also