Added encryption to Session reading and writing

This commit is contained in:
Woody Gilk 2009-05-31 10:16:41 -05:00
parent 472addbcdb
commit 842d13af99

View file

@ -102,7 +102,8 @@ abstract class Session_Core {
if ($this->_encrypted === TRUE) if ($this->_encrypted === TRUE)
{ {
// @todo: encrypt the data here // Encrypt the data using the default key
$data = Encrypt::instance()->encode($data);
} }
else else
{ {
@ -175,7 +176,8 @@ abstract class Session_Core {
{ {
if ($this->_encrypted === TRUE) if ($this->_encrypted === TRUE)
{ {
// @todo: decrypt the data here // Decrypt the data using the default key
$data = Encrypt::instance()->decode($data);
} }
else else
{ {