Joomla! 1.5 API

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2011 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. 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

  • since: 1.5

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

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 44)

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 54)
void decrypt ( $s)
  • $s
encrypt (line 61)
void encrypt ( $s)
  • $s
_charToInt (line 150)
void _charToInt ( $c)
  • $c
_hexToInt (line 70)
void _hexToInt ( $s,  $i)
  • $s
  • $i
_hexToIntArray (line 137)
void _hexToIntArray ( $s)
  • $s
_intToHex (line 174)
void _intToHex ( $i)
  • $i
_xorCharString (line 188)
void _xorCharString ( $s)
  • $s
_xorString (line 156)
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()
Support Joomla!