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

Class: DB_Sqlite_Tools_ArcFour

Source Location: /DB_Sqlite_Tools-0.1.3/Tools/ArcFour.php

Class Overview


ArcFour stream cipher routines implementation


Author(s):

Version:

  • $Revision: 1.2 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 44]
ArcFour stream cipher routines implementation

in PHP4 based on code written by Damien Miller <djm@mindrot.org> ported to PHP 5 by David Costa <gurugeek@php.net> Usage: $key = "pear"; $message = "PEAR rulez!";

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



[ Top ]


Method Detail

__construct (Constructor)   [line 77]

void __construct( [string $key = null])

Constructor Pass encryption key to key()

Parameters:

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

[ Top ]

crypt   [line 121]

void crypt( string &$paramstr)

Encrypt function
  • Access: public

Parameters:

string   &$paramstr   —  paramstr - string that will encrypted

[ Top ]

decrypt   [line 147]

void decrypt( string &$paramstr)

Decrypt function
  • Access: public

Parameters:

string   &$paramstr   —  paramstr - string that will decrypted

[ Top ]

key   [line 97]

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 84]

void setKey( $key)

  • Access: public

Parameters:

   $key   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:56:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.