first draft for making the encryption layer independent
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 28 Mar 2017 15:44:31 +0000 (17:44 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit2ae46844b09756e6ec6c8b413a0d69aeb783ef23
treed62fcab85f82950c86f9cc9398310d8a5ed4ee17
parent13cc7dfcefd6b087fa532b54c89f688db2906c4a
first draft for making the encryption layer independent

WIP.

In Deltatar, we cannot use the ctor itself to set up the
encryption because it is neutral wrt. reading / writing.
Only once one of the entry points:

- ``.list_backup()``,
- ``.create_full_backup()``, ``.create_diff_backup()``, or
- ``.restore_backup()``.

are invoked do we know what the object’s intended use is.
Thus we hook the encryption handler somewhere in there.
deltatar/crypto.py
deltatar/deltatar.py
deltatar/tarfile.py