Module refinery.units.crypto.cipher.des3

Expand source code Browse git
from __future__ import annotations

from Cryptodome.Cipher import DES3

from refinery.lib.crypto import PyCryptoFactoryWrapper
from refinery.units.crypto.cipher import StandardBlockCipherUnit


class des3(StandardBlockCipherUnit, cipher=PyCryptoFactoryWrapper(DES3)):
    """
    3-DES (Triple DES) encryption and decryption. A symmetric block cipher that applies DES three
    times with 112 or 168-bit keys, used in legacy financial and payment systems.
    """

Classes

class des3 (key, *, iv=b'', padding=None, mode=None, raw=False, little_endian=False, segment_size=0, tag=(), aad=b'')

3-DES (Triple DES) encryption and decryption. A symmetric block cipher that applies DES three times with 112 or 168-bit keys, used in legacy financial and payment systems.

Expand source code Browse git
class des3(StandardBlockCipherUnit, cipher=PyCryptoFactoryWrapper(DES3)):
    """
    3-DES (Triple DES) encryption and decryption. A symmetric block cipher that applies DES three
    times with 112 or 168-bit keys, used in legacy financial and payment systems.
    """

Ancestors

Subclasses

Inherited members