MDL-36580 backup: General support for encrypted contents in backups
commit6c436ac37e24826ce5b65f6600367c791f769b33
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 27 Jun 2016 00:32:09 +0000 (27 02:32 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 19 Oct 2017 08:20:18 +0000 (19 10:20 +0200)
tree2bd94e13aee89ea727cdbe7d4a0535697a9069fa
parent0fe09543444fae06960a4e204c1728c17774cfae
MDL-36580 backup: General support for encrypted contents in backups

- Built using standard backup custom fields.
- Can be applied potentially everywhere.
- Automatically addded 'encrypted' attribute.
- Defaults to site generated key.
- Enforces key robutness / provides authentication (hmac integrity)
- Covered with unit tests.
backup/backup.class.php
backup/moodle2/backup_custom_fields.php
backup/moodle2/tests/backup_encrypted_content_test.php [new file with mode: 0644]