diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-07-06 16:38:35 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-07-06 16:38:35 +0200 |
commit | aafba6d33f8af1d4967d069999b9fb0052ebcd65 (patch) | |
tree | 777a6b53c3edf0feccefe36efc6024564c416e03 /memoryhole/__init__.py | |
parent | c0ae8b109a21fad1c2ff56db0768c16b78f6a5f7 (diff) |
[feat] use a config class for the protect function
Diffstat (limited to 'memoryhole/__init__.py')
-rw-r--r-- | memoryhole/__init__.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/memoryhole/__init__.py b/memoryhole/__init__.py index fd621ea..a7b0df5 100644 --- a/memoryhole/__init__.py +++ b/memoryhole/__init__.py @@ -1,12 +1,8 @@ -from memoryhole.protection import protect -from memoryhole.openpgp import OpenPGP +from memoryhole.protection import protect, ProtectConfig +from memoryhole.openpgp import IOpenPGP from memoryhole.gpg import Gnupg -PROTECTED_HEADERS = ('Subject', 'Message-ID', 'Date', 'To', 'From') -OBSCURED_HEADERS = ('Subject', 'Message-ID', 'Date', 'To', 'From') - - def unwrap(msg, opengp=Gnupg()): """ Unwrap an email replacing and verifying memory hole headers. @@ -17,10 +13,10 @@ def unwrap(msg, opengp=Gnupg()): verification :type openpgp: OpenPGP - :return: a dencrypted email + :return: a decrypted email :rtype: Message """ raise NotImplementedError() -__all__ = ["protect", "unwrap", "OpenPGP"] +__all__ = ["protect", "ProtectConfig", "unwrap", "IOpenPGP"] |