|
static | encode ( $data, $key=null, $algo='md5') |
|
static | decode ( $data, $key=null, $algo='md5') |
|
static | serialize ( $data, $key=null, $algo='md5') |
|
static | unserialize ( $data, $key=null, $algo='md5') |
|
static | compress ( $data, $key=null, $algo='md5') |
|
static | uncompress ( $data, $key=null, $algo='md5') |
|
Serialize/encode a data element with a hmac hash to verify that the output are in fact the same as the input data, minimizing an attack vector on injecting malicious content when retrieving the data from en external systems (like a cache).
The shared secret key to generate the HMAC is by default MediaWiki's $wgSecretKey.
GNU GPL v2+
- Since
- 3.0
- Author
- mwjames