BlueShoes Application Framework made with PHP http://www.blueshoes.org/


Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: C:/usr/local/lib/php/blueshoes-4.2/core/crypt/Bs_Rc4Crypt.class.php
BlueShoes Application Framework - Crypt

Bs_Rc4Crypt

Bs_Object
   |
  +-- Bs_Rc4Crypt

**********************************************************************

 

private class Bs_Rc4Crypt extends Bs_Object

**********************************************************************
RC4 Class (Pure PHP. No libmcrypt 2.4.x needed.)Fairly fast, secure and symmetric en- and decryption algorithm.What is RC4 ? (by Mukul Sabharwal)RC4 is fairly fast, secure and symmetric encryption algorithm. Devloped byRon Rivest in 1987 was kept trade secret until 9th September 1994 when itwas posted on a Cypherpunks mailing list. Generally the key it uses islimited to 40 bits for various legal reasons but 128bits is the more commonforms these days.

AuthorsSamuel Blume <bs_php@infeer.com>
Version4.0.$id$
Copyrightblueshoes.org

 

Methods inherited from Bs_Object

isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean

Public Method Summary

void

Bs_Rc4Crypt()

constructor
string

crypt(string $pwd, string &$data)

**********************************************************************

Private Constant Summary

BS_RC4CRYPT_VERSION >>4.0.$x$<< Warning: documentation is missing.

Public Method Details

Bs_Rc4Crypt

public void Bs_Rc4Crypt( )

  constructor

Returns void


crypt

public string crypt( string $pwd, string &$data )

  **********************************************************************
Do a RC4 en- or decrypt.It's symmetric. That means it uses the function for encrypting andfor decrypting.

Parameter
string $pwd
The en-/decrypt password (key). May be up to 256 byte.
string &$data
The data to be en-/decrypted.
Returns string

A byte-stream of data.


Private Constant Details

BS_RC4CRYPT_VERSION

define( BS_RC4CRYPT_VERSION, >>4.0.$x$<< )
Case: default: case sensitive




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta