#47565 [NEW]: Extend serialize and unserialize with encryption key.
| From: | martin at itmission dot com | Date: | Wed, 04 Mar 2009 21:23:35 +0000 |
| Subject: | #47565 [NEW]: Extend serialize and unserialize with encryption key. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-134414@lists.php.net to get a copy of this message | ||
From: martin at itmission dot com
Operating system:
PHP version: 5.3.0beta1
PHP Bug Type: Feature/Change Request
Bug description: Extend serialize and unserialize with encryption key.
Description:
------------
Request: Add simple encryption support to serialize and unserialize.
Rationale: It is useful to be able to serialize an object and hide it in a
form variable on a web page. This is vulnerable to tampering by the end
user.
serialize(mixed $value[, string $key])
unserialize(string $str[, string $key])
This new definition won't break existing code and could be implemented
using a TEA variant in a few lines. It would be nice if objects didn't
have to be persisted in $_SESSION, because some power users want to use
multiple windows to work with different objects simultaneously (editing two
"invoice" objects at the same time, but commiting only complete changes of
each).
--
Edit bug report at http://bugs.php.net/?id=47565&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47565&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47565&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47565&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47565&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47565&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47565&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47565&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47565&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47565&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47565&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47565&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47565&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47565&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47565&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47565&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47565&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47565&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47565&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47565&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47565&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47565&r=mysqlcfg