Modify Encryption Keys
Before using SwartzDB, you must update its configuration to secure your data. Open the /SwartzDB/config.php file and modify the following parameters:
- IV: Initialization Vector used for encryption.
- Key: Your primary encryption key.
- Extra Key (Ekey): An additional key to enhance security.
Below is an example configuration:
$iv = "6YW9MdFN25mDVLzd";
$key = "CgtEb6Z4vzeg34CJzCCgtEb6Z4vzeg34CJzCb7YB";
$Ekey = "3tce81XCrpOK3tce81XCrpOKvx123Q1gJKS3IJI";
$cipher = "aes-256-cbc";
warning
SwartzDB comes with default IV, Key, and Ekey values. Change these values before using the database to ensure your data is secure.
This configuration step is crucial because it customizes the encryption settings to match your security needs.