Differences Between: [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]
Defines various element classes used in specific areas
Copyright: | 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 288 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
anonymizer_final_element:: (1 method):
set_value()
mnethosturl_final_element:: (1 method):
set_value()
base64_encode_final_element:: (1 method):
set_value()
encrypted_final_element:: (4 methods):
__construct()
set_key()
set_value()
generate_encryption_random_key()
file_nested_element:: (2 methods):
process()
fill_values()
backup_plugin_element:: (0 methods):
backup_subplugin_element:: (0 methods):
Class: anonymizer_final_element - X-Ref
Implementation of backup_final_element that provides one interceptor for anonymization of dataClass: mnethosturl_final_element - X-Ref
Implementation of backup_final_element that provides special handling of mnethosturlClass: base64_encode_final_element - X-Ref
Implementation of {@link backup_final_element} that provides base64 encoding.Class: encrypted_final_element - X-Ref
Implementation of {@link backup_final_element} that provides symmetric-key AES-256 encryption of contents.__construct($name, $attributes = null) X-Ref |
Constructor - instantiates a encrypted_final_element, specifying its basic info. Overridden to automatically add the 'encrypted' attribute if missing. param: string $name name of the element param: array $attributes attributes this element will handle (optional, defaults to null) |
set_key($key) X-Ref |
Set the encryption key manually, overriding default backup_encryptkey config. param: string $key key to be used for encrypting. Required to be 256-bit key. |
set_value($value) X-Ref |
Set the value of the field. This method sets the value of the element, encrypted using the specified key for it, defaulting to (and generating) backup_encryptkey config. HMAC is used for integrity. param: string $value plain-text content the will be stored encrypted and encoded. |
generate_encryption_random_key($bytes) X-Ref |
Generate an appropiate random key to be used for encrypting backup information. Normally used as site default encryption key (backup_encryptkey config) and also for calculating the init vectors. Note that until PHP 5.6.12 openssl_random_pseudo_bytes() did NOT use a "cryptographically strong algorithm" {@link https://bugs.php.net/bug.php?id=70014} But it's beyond my crypto-knowledge when it's worth finding a *real* better alternative. param: int $bytes Number of bytes to determine the key length expected. |
Class: file_nested_element - X-Ref
Implementation of backup_nested_element that provides special handling of filesClass: backup_plugin_element - X-Ref
Implementation of backup_optigroup_element to be used by plugins stuff.Class: backup_subplugin_element - X-Ref
Implementation of backup_optigroup_element to be used by subplugins stuff.