Source for file simplecrypt.php
Documentation is available at simplecrypt.php
* @subpackage Simplecrypt
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* JSimpleCrypt is a very simple encryption algorithm for encrypting/decrypting strings
* @subpackage Simplecrypt
* @deprecated 12.3 (Platform) & 4.0 (CMS) - Use JCrypt instead.
* Encryption/Decryption Key
* @deprecated 12.3 Use JCrypt instead.
* 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.
* @param string $privateKey Optional encryption key
* @deprecated 12.3 Use JCrypt instead.
JLog::add('JSimpleCrypt is deprecated. Use JCrypt instead.', JLog::WARNING, 'deprecated');
// Build the JCryptKey object.
$key =
new JCryptKey('simple', $privateKey, $privateKey);
// Setup the JCrypt object.
* @param string $s String to decrypt
* @deprecated 12.3 Use JCrypt instead.
return $this->_crypt->decrypt($s);
* @param string $s String to encrypt
* @deprecated 12.3 Use JCrypt instead.
return $this->_crypt->encrypt($s);
Documentation generated on Tue, 19 Nov 2013 15:13:00 +0100 by phpDocumentor 1.4.3