MDL-36580 backup: General support for encrypted contents in backups
commit872e957415e3fbb607f01a4fba4b483b111f4c76
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:11:39 +0000 (19 10:11 +0200)
tree69c7256f1e439a8c60b9bc44587a51407428320d
parent9644c0e87ab3c05226ed2e513195439c12090c73
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]