### Classes and interfaces

# Crypt_AES¶

Pure-PHP implementation of AES.

« More »

### Constants

## CRYPT_AES_MODE

    CRYPT_AES_MODE

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

    CRYPT_AES_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_AES_MODE_CFB

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

## Encrypt / decrypt using the Counter mode.

    CRYPT_AES_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_AES_MODE_ECB

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

## Toggles the internal implementation

    CRYPT_AES_MODE_INTERNAL

## Toggles the mcrypt implementation

    CRYPT_AES_MODE_MCRYPT

## Encrypt / decrypt using the Cipher Feedback mode.

    CRYPT_AES_MODE_OFB

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