Add encryption handling to updateRowById method
Extended the updateRowById method across mysql, pdo, and IDb to support encrypted fields. Updated the PDO update logic to conditionally encrypt data using DES_ENCRYPT when specified. This ensures sensitive data is managed securely during updates.
This commit is contained in:
@@ -13,9 +13,10 @@ interface IDb
|
||||
* @desc will update the a row with the $rowset parameter by the given id
|
||||
* @param array $rowData
|
||||
* @param int $id
|
||||
* @param string $encrypted
|
||||
* @return mixed
|
||||
*/
|
||||
public function updateRowById( array $rowData, int $id );
|
||||
public function updateRowById( array $rowData, int $id, string $encrypted = "" );
|
||||
|
||||
/**
|
||||
* @desc updates a row by a given field and field where search value
|
||||
|
||||
Reference in New Issue
Block a user