Select CI3 Encrypted data directly from MySQL database |
(05-12-2017, 04:14 AM)xenomorph1030 Wrote: In the future, you can always look at the library and functions in question. It isn't too difficult to decipher (no pun intended). https://github.com/bcit-ci/CodeIgniter/b...n.php#L371 Thanks. I tried to update my post last night but it had not been approved yet. I modified Encryption.php by adding log_messages like this: PHP Code: protected function _openssl_decrypt($data, $params) Which produced the log: Code: DEBUG - 2017-05-12 11:43:57 --> encryption->_openssl_decrypt(predata=gdAl+49y1SWCagGyTCQAV2L4mA8O81sbMxMzrtpjFvI=) Code: SET block_encryption_mode = 'aes-128-cbc'; To break this down step by step I'll show what I was trying to replicate from Encrypt to MySQL: $iv = self:ubstr($data, 0, $iv_size); |
Messages In This Thread |
Select CI3 Encrypted data directly from MySQL database - by eflyerman - 05-11-2017, 09:43 PM
RE: Select CI3 Encrypted data directly from MySQL database - by Narf - 05-12-2017, 04:09 AM
RE: Select CI3 Encrypted data directly from MySQL database - by xenomorph1030 - 05-12-2017, 04:14 AM
RE: Select CI3 Encrypted data directly from MySQL database - by eflyerman - 05-12-2017, 09:59 AM
RE: Select CI3 Encrypted data directly from MySQL database - by eflyerman - 05-12-2017, 10:34 AM
|