|
mcrypt.* and mdecrypt.* provide symmetric encryption and decryption using libmcrypt. Both sets of filters support the same algorithms available to mcrypt extension in the form of mcrypt.ciphername where ciphername is the name of the cipher as it would be passed to mcrypt_module_open(). The following five filter parameters are also available:
Tabelle M-1. mcrypt filter parameters
Parameter | Required? | Default | Sample Values |
---|---|---|---|
mode | Optional | cbc | cbc, cfb, ecb, nofb, ofb, stream |
algorithms_dir | Optional | ini_get('mcrypt.algorithms_dir') | Location of algorithms modules |
modes_dir | Optional | ini_get('mcrypt.modes_dir') | Location of modes modules |
iv | Required | N/A | Typically 8, 16, or 32 bytes of binary data. Depends on cipher |
key | Required | N/A | Typically 8, 16, or 32 bytes of binary data. Depends on cipher |
Beispiel M-11. Reading an encrypted file
|
Zurück | Zum Anfang | Weiter |
Compression Filters | Nach oben | List of Supported Socket Transports |
Hosting by: Hurra Communications GmbH
Generated: 2007-01-26 17:56:57