Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

 Class JSimpleCrypt

Description

JSimpleCrypt is a very simple encryption algorithm for encyrpting/decrypting strings

Located in /joomla/utilities/simplecrypt.php (line 27)

Class JObject   (Subpackage Base)

Class JSimpleCrypt   (Subpackage Utilities)
Method Summary
Constructor void __construct ([string $key = null])
Method void decrypt ( $s)
Method void encrypt ( $s)
Method void _charToInt ( $c)
Method void _hexToInt ( $s,  $i)
Method void _hexToIntArray ( $s)
Method void _intToHex ( $i)
Method void _xorCharString ( $s)
Method void _xorString ( $ai)
Variables

Inherited Variables

Inherited from JObject

Variable JObject::$_errors
Methods
Constructor __construct (line 45)

Object Constructor takes an optional key to be used for encryption/decryption. If no key is given then the secret word from the configuration object is used.

  • since: 1.5
  • access: protected
void __construct ([string $key = null])
  • string $key: Optional encryption key

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.
decrypt (line 55)
void decrypt ( $s)
  • $s
encrypt (line 62)
void encrypt ( $s)
  • $s
_charToInt (line 151)
void _charToInt ( $c)
  • $c
_hexToInt (line 71)
void _hexToInt ( $s,  $i)
  • $s
  • $i
_hexToIntArray (line 138)
void _hexToIntArray ( $s)
  • $s
_intToHex (line 175)
void _intToHex ( $i)
  • $i
_xorCharString (line 189)
void _xorCharString ( $s)
  • $s
_xorString (line 157)
void _xorString ( $ai)
  • $ai

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::getPublicProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::toString()

Documentation generated on Tue, 29 Jan 2008 18:50:29 +0000 by phpDocumentor 1.3.1