Class Horde_Cipher_rc4

Description

The Cipher_rc4:: class implements the Cipher interface encryption data using the RC4 encryption algorthim. This class uses the PEAR Crypt_RC4 class to do the encryption.

$Horde: framework/Cipher/Cipher/rc4.php,v 1.4.12.11 2009/01/06 15:22:57 jan Exp $

Copyright 2002-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Cipher/Cipher/rc4.php (line 18)

Horde_Cipher
   |
   --Horde_Cipher_rc4
Variable Summary
 Crypt_RC4 $_cipher
Method Summary
 Horde_Cipher_rc4 Horde_Cipher_rc4 ([ $params = null])
 string decryptBlock (string $block, [string $key = null])
 string encryptBlock (string $block, [string $key = null])
 integer getBlockSize ()
 void setKey (string $key)
Variables
Crypt_RC4 $_cipher (line 25)

Pointer to a PEAR Crypt_RC4 object

Inherited Variables

Inherited from Horde_Cipher

Horde_Cipher::$_blockMode
Horde_Cipher::$_iv
Methods
Constructor Horde_Cipher_rc4 (line 30)

Constructor

Horde_Cipher_rc4 Horde_Cipher_rc4 ([ $params = null])
  • $params
decryptBlock (line 85)

Decrypt a block of data.

  • return: The decrypted output.
string decryptBlock (string $block, [string $key = null])
  • string $block: The data to decrypt.
  • string $key: The key to use.
encryptBlock (line 64)

Encrypt a block of data.

  • return: The encrypted output.
string encryptBlock (string $block, [string $key = null])
  • string $block: The data to encrypt.
  • string $key: The key to use.
getBlockSize (line 51)

Return the size of the blocks that this cipher needs.

  • return: The number of characters per block.
integer getBlockSize ()
setKey (line 41)

Set the key to be used for en/decryption.

void setKey (string $key)
  • string $key: The key to use.

Inherited Methods

Inherited From Horde_Cipher

 Horde_Cipher::decrypt()
 Horde_Cipher::encrypt()
 Horde_Cipher::factory()
 Horde_Cipher::setBlockMode()
 Horde_Cipher::setIV()

Documentation generated on Sun, 30 Jan 2011 05:20:45 +0000 by phpDocumentor 1.4.3