Class JSimpleCrypt

Description

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

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1

Located in /libraries/joomla/utilities/simplecrypt.php (line 20)

JObject
   |
   --JSimpleCrypt
Variable Summary
string $_key
Method Summary
JSimpleCrypt __construct ([string $key = null])
string decrypt (string $s)
string encrypt (string $s)
integer _charToInt (string $c)
integer _hexToInt (string $s, integer $i)
array _hexToIntArray (string $s)
string _intToHex (integer $i)
array _xorCharString (string $s)
string _xorString (string $ai)
Variables
string $_key (line 27)

Encryption/Decryption Key

  • access: protected

Inherited Variables

Inherited from JObject

JObject::$_errors
Methods
Constructor __construct (line 38)

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.

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: public
JSimpleCrypt __construct ([string $key = null])
  • string $key: Optional encryption key

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.
decrypt (line 63)

Decrypt a string

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: public
string decrypt (string $s)
  • string $s: String to decrypt
encrypt (line 81)

Encrypt a string

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: public
string encrypt (string $s)
  • string $s: String to encrypt
_charToInt (line 205)

Convert character string to integer

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: protected
integer _charToInt (string $c)
  • string $c: The character to convert to an integer.
_hexToInt (line 105)

Convert hex to an integer

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: protected
integer _hexToInt (string $s, integer $i)
  • string $s: The hex string to convert.
  • integer $i: The offset?
_hexToIntArray (line 181)

Convert hex to an array of integers

  • return: An array of integers.
  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: protected
array _hexToIntArray (string $s)
  • string $s: The hex string to convert to an integer array.
_intToHex (line 253)

Convert integer to hex

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: protected
string _intToHex (integer $i)
  • integer $i: An integer value to convert.
_xorCharString (line 280)

Use xor encryption

  • return: An array of integers
  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: protected
array _xorCharString (string $s)
  • string $s: The string.
_xorString (line 222)

XorString

  • deprecated: 12.3 Use JCrypt instead.
  • since: 11.1
  • access: protected
string _xorString (string $ai)
  • string $ai: The string.

Inherited Methods

Inherited From JObject

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

Documentation generated on Mon, 25 Jun 2012 13:59:31 -0500 by phpDocumentor 1.4.4