Skip to content

Custom transmission encryptor

ElbyFross edited this page Jan 20, 2020 · 3 revisions

Remarks

By default the DNF implements a RSA for asymmetric encryption and AES for symmetric encryption.

The framework allows you to implement new IEncryptionOperator that handles other algorithm.

Example

Implementation

  1. Create a new class.
  2. Derive if from the PipesProvider.Security.Encryption.Operators.IEncryptionOperator interface and implement its members.
  3. You awesome!

The description for all members provided in the source or int the local Documentation.

Look at the alreade implemeted operators: RSA, AES.

Applying to the handlers

Symmetric encription

Symmetric encryption operator using during encryption of binary content of queries.

Define the same value as in the Code property of your IEncriptionOperator at the EncryptionInfo.contentEncytpionOperatorCode field during creation of a Query instance.

Example: new Query.EncryptionInfo(){contentEncytpionOperatorCode = "aes"} will define that the query must be encrypted with the AESEncryptionOperator.

Asymmetric encription

Asymmetric encryption operator using during encryption of queries' metadata that contains a secret symmetric keys and other private info.

Links

Sources

Realted pages