Class Horde_Secret
Provides an API for encrypting and decrypting small pieces of data with the use of a shared key stored in a cookie.
Copyright 1999-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Package: Secret
Category: Horde
License: LGPL
Author: Chuck Hagenbuch chuck@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Secret.php
Category: Horde
License: LGPL
Author: Chuck Hagenbuch chuck@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Secret.php
public
|
|
public
string
|
|
public
string
|
|
public
string
|
#
setKey( string $keyname =
Generate a secret key (for encryption), either using a random md5 string and storing it in a cookie if the user has cookies enabled, or munging some known values if they don't. |
public
string
|
#
getKey( string $keyname =
Return a secret key, either from a cookie, or if the cookie isn't there, assume we are using a munged version of a known base value. |
public
boolean
|
#
clearKey( string $keyname =
Clears a secret key entry from the current cookie. |
string |
DEFAULT_KEY
Generic, default keyname. |
#
'generic'
|