Skip to content

passlib.utils.des - DES routines [deprecated]

Routines for performing DES encryption.

Warning

This module is deprecated as of Passlib 1.7: It has been relocated to passlib.crypto.des; and the aliases here will be removed in Passlib 2.0.

This module contains routines for encrypting blocks of data using the DES algorithm. Note that these functions do not support multi-block operation or decryption, since they are designed primarily for use in password hash algorithms (such as passlib.hash.des_crypt and passlib.hash.bsdi_crypt).

Interface

expand_des_key module-attribute

expand_des_key = deprecated_function(
    deprecated="1.7",
    removed="2.0",
    replacement="passlib.crypto.des.expand_des_key",
)(expand_des_key)

des_encrypt_block module-attribute

des_encrypt_block = deprecated_function(
    deprecated="1.7",
    removed="2.0",
    replacement="passlib.crypto.des.des_encrypt_block",
)(des_encrypt_block)

des_encrypt_int_block module-attribute

des_encrypt_int_block = deprecated_function(
    deprecated="1.7",
    removed="2.0",
    replacement="passlib.crypto.des.des_encrypt_int_block",
)(des_encrypt_int_block)