| [ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
The Cipher_blowfish:: class implements the Cipher interface enryption data using the Blowfish algorithm.
| Author: | Mike Cochrane |
| Version: | $Revision: 2.4 $ |
| File Size: | 567 lines (28 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Horde_Cipher_blowfish:: (10 methods):
Cipher_blowfish()
setKey()
getBlockSize()
encryptBlock()
_encryptBlock()
decryptBlock()
_formatKey()
full_str_pad()
PMA_blowfish_encrypt()
PMA_blowfish_decrypt()
Class: Horde_Cipher_blowfish - X-Ref
| Cipher_blowfish($params = null) X-Ref |
| No description |
| setKey($key) X-Ref |
| Set the key to be used for en/decryption param: String $key The key to use |
| getBlockSize() X-Ref |
| Return the size of the blocks that this cipher needs return: Integer The number of characters per block |
| encryptBlock($block, $key = null) X-Ref |
| Encrypt a block on data. param: String $block The data to encrypt param: optional String $key The key to use return: String the encrypted output |
| _encryptBlock($L, $R) X-Ref |
| Encrypt a block on data. param: String $L The data to encrypt. param: String $R The data to encrypt. return: String The encrypted output. |
| decryptBlock($block, $key = null) X-Ref |
| Decrypt a block on data. param: String $block The data to decrypt param: optional String $key The key to use return: String the decrypted output |
| _formatKey($key) X-Ref |
| Converts a text key into an array. return: array The key. |
| full_str_pad($input, $pad_length, $pad_string = '', $pad_type = 0) X-Ref |
| String padding param: string input string param: integer length of the result param: string the filling string param: integer padding mode return: string the padded string |
| PMA_blowfish_encrypt($data, $secret) X-Ref |
| Encryption using blowfish algorithm author: lem9 param: string original data param: string the secret return: string the encrypted result |
| PMA_blowfish_decrypt($encdata, $secret) X-Ref |
| Decryption using blowfish algorithm author: lem9 param: string encrypted data param: string the secret return: string original data |
| Generated: Fri Nov 21 01:30:02 2008 | Cross-referenced by PHPXref 0.7 |