Crypt
[ class tree: Crypt ] [ index: Crypt ] [ all elements ]

Class: Crypt_Rc4

Source Location: /Crypt_RC4-1.0.3/Crypt/Rc4.php

Class Overview


RC4 stream cipher routines implementation


Author(s):

Version:

  • $Revision: 304005 $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 44]
RC4 stream cipher routines implementation

in PHP4 based on code written by Damien Miller <djm@mindrot.org>

Usage: $key = "pear"; $message = "PEAR rulez!";

$rc4 = new Crypt_RC4; $rc4->setKey($key); echo "Original message: $message
\n"; $rc4->crypt($message); echo "Encrypted message: $message
\n"; $rc4->decrypt($message); echo "Decrypted message: $message
\n";

  • Author: Dave Mertens <zyprexia@php.net>
  • Version: $Revision: 304005 $
  • Access: public


[ Top ]


Class Variables

$i =  0

[line 55]

Real programmers...

Type:   array


[ Top ]

$j =  0

[line 60]

Real programmers...

Type:   array


[ Top ]

$s = array()

[line 50]

Real programmers...

Type:   array


[ Top ]



Method Detail

crypt   [line 118]

void crypt( string &$paramstr)

Encrypt function
  • Access: public

Parameters:

string   &$paramstr   —  paramstr - string that will encrypted

[ Top ]

Crypt_RC4   [line 77]

void Crypt_RC4( [string $key = null])

Constructor Pass encryption key to key()

Parameters:

string   $key   —  key - Key which will be used for encryption

[ Top ]

decrypt   [line 144]

void decrypt( string &$paramstr)

Decrypt function
  • Access: public

Parameters:

string   &$paramstr   —  paramstr - string that will decrypted

[ Top ]

key   [line 95]

void key( string &$key)

Assign encryption key to class
  • Access: public

Parameters:

string   &$key   —  key - Key which will be used for encryption

[ Top ]

setKey   [line 83]

void setKey( $key)


Parameters:

   $key   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.