8.6.21. vantage6.common.encryption#

Encryption between organizations

Module to provide async encrpytion between organizations. All input and result fields should be encrypted when communicating to the central server.

All incomming messages (input/results) should be encrypted using the public key of this organization. This way we can decrypt them using our private key.

In the case we are sending messages (input/results) we need to encrypt it using the public key of the receiving organization. (retreiving these public keys is outside the scope of this module).

Classes

CryptorBase(*args, **kwargs)

Base class/interface for encryption implementations.

DummyCryptor(*args, **kwargs)

Does absolutely nothing to encrypt the data.

RSACryptor(private_key_file)

Wrapper class for the cryptography package.