[ Index ] |
|
Code source de DokuWiki 2006-11-06 |
[Code source] [Imprimer] [Statistiques]
The Cipher_blowfish:: class implements the Cipher interface enryption data using the Blowfish algorithm.
Author: | Mike Cochrane <mike@graftonhall.co.nz> |
Version: | $Revision: 2.4 $ |
Poids: | 567 lignes (28 kb) |
Inclus ou requis: | 1 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Horde_Cipher_blowfish:: (10 méthodes):
Cipher_blowfish()
setKey()
getBlockSize()
encryptBlock()
_encryptBlock()
decryptBlock()
_formatKey()
full_str_pad()
PMA_blowfish_encrypt()
PMA_blowfish_decrypt()
Classe: Horde_Cipher_blowfish - X-Ref
Cipher_blowfish($params = null) X-Ref |
Pas de 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 |
Généré le : Tue Apr 3 20:47:31 2007 | par Balluche grâce à PHPXref 0.7 |