Property | Type | Description | |
---|---|---|---|
$_cipherCache | array | Cipher cache. | |
$_keyCache | array | Key cache. | |
$_params | array | Configuration parameters. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
clearKey ( string $keyname = self::DEFAULT_KEY ) : boolean | Clears a secret key entry from the current cookie. | |
getKey ( string $keyname = self::DEFAULT_KEY ) : string | 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. | |
read ( string $key, $ciphertext ) : string | Decrypt a message encrypted with write(). | |
setKey ( string $keyname = self::DEFAULT_KEY ) : string | Generate a secret key (for encryption), either using a random string and storing it in a cookie if the user has cookies enabled, or munging some known values if they don't. | |
write ( string $key, string $message ) : string | Take a small piece of data and encrypt it with a key. |
Method | Description | |
---|---|---|
_getCipherOb ( string $key ) : Horde_Crypt_Blowfish | Returns the cached crypt object. | |
_setCookie ( string $keyname, string $key ) | Sets the cookie with the given keyname/key. |
public __construct ( array $params = [] ) | ||
$params | array | Configuration parameters: - cookie_domain: (string) The cookie domain. - cookie_path: (string) The cookie path. - cookie_ssl: (boolean) Only transmit cookie securely? - session_name: (string) The cookie session name. |
protected _getCipherOb ( string $key ) : Horde_Crypt_Blowfish | ||
$key | string | The key to use for [de|en]cryption. Only the first 56 bytes of this string is used. |
return | Horde_Crypt_Blowfish | The crypt object. |
protected _setCookie ( string $keyname, string $key ) | ||
$keyname | string | The name of the key to set. |
$key | string | The key to use for encryption. |