From 842d13af99ca5a84bfdcfe8b85319cc0e058304f Mon Sep 17 00:00:00 2001 From: Woody Gilk Date: Sun, 31 May 2009 10:16:41 -0500 Subject: [PATCH] Added encryption to Session reading and writing --- system/classes/session.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/classes/session.php b/system/classes/session.php index f4a7d56..c823b92 100644 --- a/system/classes/session.php +++ b/system/classes/session.php @@ -102,7 +102,8 @@ abstract class Session_Core { if ($this->_encrypted === TRUE) { - // @todo: encrypt the data here + // Encrypt the data using the default key + $data = Encrypt::instance()->encode($data); } else { @@ -175,7 +176,8 @@ abstract class Session_Core { { if ($this->_encrypted === TRUE) { - // @todo: decrypt the data here + // Decrypt the data using the default key + $data = Encrypt::instance()->decode($data); } else {