backend.globaleaks.utils.pgp

Module Contents

Classes

PGPContext
class backend.globaleaks.utils.pgp.PGPContext(tempdirprefix=None)[source]

Bases: object

load_key(self, key)[source]
Parameters:key – A PGP key to be loaded
Returns:a dict with the expiration date and the key fingerprint
encrypt_file(self, key_fingerprint, input_file, output_path)[source]

Encrypt a file with the specified PGP key

encrypt_message(self, key_fingerprint, plaintext)[source]

Encrypt a text message with the specified key

__del__(self)[source]