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

Class: DB_Sqlite_Tools_ArcFour

Source Location: /DB_Sqlite_Tools-0.1.7/DB/Sqlite/Tools/ArcFour.php

Class Overview


ArcFour stream cipher routines class.


Author(s):

Version:

  • Release: 0.1.7

Copyright:

  • Copyright (c) 1997-2003 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 69]
ArcFour stream cipher routines class.

ArcFour stream cipher routines implementation in PHP written by Dave Mertens <dmertens@zyprexia.com> based on code written by Damien Miller <djm@mindrot.org> ported from PEAR::RC4 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 111]

DB_Sqlite_Tools_ArcFour __construct( [string $key = null])

Constructor

Parameters:

string   $key   —  Key which will be used for encryption

[ Top ]

crypt   [line 170]

void crypt( &$paramstr, string $paramstr)

Encrypt function.

This function will be encrypt the string argument given.

  • See: DB_Sqlite_Tools_ArcFour::key()
  • Access: public

Parameters:

string   $paramstr   —  (reference) string that will encrypted
   &$paramstr   — 

[ Top ]

decrypt   [line 201]

void decrypt( &$paramstr, string $paramstr)

Decrypt function.

This function will be decrypt the string argument given.


Parameters:

string   $paramstr   —  (reference) The string that will decrypted
   &$paramstr   — 

[ Top ]

setKey   [line 126]

void setKey( string $key)

Set the encryption key.
  • Access: public

Parameters:

string   $key   —  Key which will be user for encrytion

[ Top ]


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