### Classes and interfaces

# Crypt_DES¶

Pure-PHP implementation of DES.

« More »

### Constants

## Contains array_reverse($keys[CRYPT_DES_ENCRYPT])

    CRYPT_DES_DECRYPT

## Contains array_reverse($keys[CRYPT_DES_DECRYPT])

    CRYPT_DES_ENCRYPT

## CRYPT_DES_MODE

    CRYPT_DES_MODE

## Encrypt / decrypt using the Code Book Chaining mode.

    CRYPT_DES_MODE_CBC

link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher-block_chaining_.28CBC.29

## Encrypt / decrypt using the Cipher Feedback mode.

    CRYPT_DES_MODE_CFB

link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Cipher_feedback_.28CFB.29

## Encrypt / decrypt using the Counter mode.

    CRYPT_DES_MODE_CTR

Set to -1 since that's what Crypt/Random.php uses to index the CTR mode.

link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29

## Encrypt / decrypt using the Electronic Code Book mode.

    CRYPT_DES_MODE_ECB

link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Electronic_codebook_.28ECB.29

## Toggles the internal implementation

    CRYPT_DES_MODE_INTERNAL

## Toggles the mcrypt implementation

    CRYPT_DES_MODE_MCRYPT

## Encrypt / decrypt using the Cipher Feedback mode.

    CRYPT_DES_MODE_OFB

link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Output_feedback_.28OFB.29