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

Class: Crypt_XXTEA

Source Location: /Crypt_XXTEA-0.8.0/Crypt/XXTEA.php

Class Overview


The main class


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2005-2006 Coolcode.CN

Methods


Inherited Variables

Inherited Methods


Class Details

[line 57]
The main class


[ Top ]


Method Detail

decrypt   [line 159]

string decrypt( string $str)

Decrypts a cipher text
  • Return: the plain text on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $str   —  the cipher text

[ Top ]

encrypt   [line 115]

string encrypt( string $str)

Encrypts a plain text
  • Return: the cipher text on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $str   —  the plain text

[ Top ]

setKey   [line 84]

bool setKey( string $key)

Sets the secret key

The key must be non-empty, and less than or equal to 16 characters

  • Return: true on success, PEAR_Error on failure
  • Access: public

Parameters:

string   $key   —  the secret key

[ Top ]


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