Python3 Implementation of DOPE Encryption
To install from source use the following command, make sure you have setuptools>=50.0.0
python3 seutp.py install
pip3 install dope3
Import DOPE
from dope3 import DOPE
Once the dope package is imported you need to create the Dope class and initialize it with the required parameters The parameters include:
- Your private Key
- Receiver's Public Key
- Session Key Size
- BCH Polynomial
- Error Correcting Code Size
- Racheting mode (
BLAKE0x0
/BLAKEx0x
) - AES Mode(
GCM
/SIV
/CBC
/OFB
) - HMAC(
SHA256
/SHA384
/SHA512
) - Key Mode(
XOR-BL
/AND-BL
)
Import DOPE2
from dope3 import DOPE2
Once the dope package is imported you need to create the Dope class and initialize it with the required parameters The parameters include:
- Your Key
- BCH Polynomial
- Error Correcting Code Size
- AES Mode(
GCM
/SIV
/CBC
/OFB
) - Nonce
- Block Size