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)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 28 Mar 2017 15:45:56 +0000 (17:45 +0200)
commit40dde6cadf9c2ebda266326be21c8459dc30e328
tree5f0f21d65856ad2e5b9ebb1b82c2105098fa1286
parent6719d31b0b051cf97e95628de4d03bfd29c32377
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