DEFAULT_KEY
DEFAULT_KEY
Generic, default keyname.
Provides an API for encrypting and decrypting small pieces of data with the use of a shared key stored in a cookie.
Copyright 1999-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
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.
string | $keyname | The name of the key to set. |
The secret key that has been generated.