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

Class: Kimono_RC4_Crypt

Source Location: /include/crypt.php

Class Overview


RC4 algorithm


Author(s):

  • Mukul Sabharwal (see below)

    ----------------------------------------------------------------- RC4Crypt 2.1

    $Id: crypt.php,v 1.21 2004/11/04 22:20:40 kirigoe Exp $

    2004/04/28 -- Bug fix for incorrect output due to XORing stupidity [Ariel Arjona (beerfrick@users.sourceforge.net)] 2003/11/15 -- Cleans urlencode's, fixed the invalid outputs 2003/02/22 -- A fix, which turned out to be a bug! 2001/02/24 -- Passes RC4 Vector Harness

    Website : http://www.devhome.org Email : god@mjsabby.com Description : Provides the main functionality of the program

    Copyright Notice:

    RC4 is a registered trademark of the RSA Data Security Inc. This is an implementation of the original algorithm. The author of this program is NOT the original publisher of this algorithm.

    (C) Copyright 2003, 2004 Mukul Sabharwal [http://mjsabby.com] All Rights Reserved

    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html

    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Methods



Class Details

[line 109]
RC4 algorithm

this algorithm uses a 256bit (minimum) key. note: the passphrase can't be longer than ~253 characters




Tags:

author:  

Mukul Sabharwal (see below)

----------------------------------------------------------------- RC4Crypt 2.1

$Id: crypt.php,v 1.21 2004/11/04 22:20:40 kirigoe Exp $

2004/04/28 -- Bug fix for incorrect output due to XORing stupidity [Ariel Arjona (beerfrick@users.sourceforge.net)] 2003/11/15 -- Cleans urlencode's, fixed the invalid outputs 2003/02/22 -- A fix, which turned out to be a bug! 2001/02/24 -- Passes RC4 Vector Harness

Website : http://www.devhome.org Email : god@mjsabby.com Description : Provides the main functionality of the program

Copyright Notice:

RC4 is a registered trademark of the RSA Data Security Inc. This is an implementation of the original algorithm. The author of this program is NOT the original publisher of this algorithm.

(C) Copyright 2003, 2004 Mukul Sabharwal [http://mjsabby.com] All Rights Reserved

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.



[ Top ]


Class Methods


constructor __construct [line 114]

Kimono_RC4_Crypt __construct( )



Tags:

static:  


[ Top ]

method Decrypt [line 176]

void Decrypt( mixed $data)



[ Top ]

method Encrypt [line 183]

void Encrypt( mixed $data)



[ Top ]

method Initiate [line 190]

void Initiate( )



[ Top ]

method Instance [line 121]

void Instance( )

initiate Singleton behaviour and return instance



Tags:

static:  


[ Top ]

method RC4 [line 137]

void RC4( mixed $data)



[ Top ]

method SetPassphrase [line 132]

void SetPassphrase( mixed $passphrase)



Tags:

todo:  perhaps some kind of complexity check?


[ Top ]


Documentation generated on Fri, 8 Apr 2005 18:27:48 +0200 by phpDocumentor 1.3.0RC3