fixed a spot where the encryption mode was still a hard coded constant instead of the fetched variable
diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php
index 8beff75..b27847a 100644
--- a/system/libraries/Encrypt.php
+++ b/system/libraries/Encrypt.php
@@ -216,7 +216,7 @@
$dec = $this->_xor_decode($dec, $key);
// set the mcrypt mode back to what it should be, typically MCRYPT_MODE_CBC
- $this->set_mode(MCRYPT_MODE_CBC);
+ $this->set_mode($current_mode);
// and re-encode
return base64_encode($this->mcrypt_encode($dec, $key));