JSimpleCrypt: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=={{JVer|11.1}} JSimpleCrypt== | |||
===Description=== | |||
{{ | |||
=== | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
!Visibility | |||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
|[[JSimpleCrypt::__construct | |public | ||
|[[API17:JSimpleCrypt::__construct|__construct]] | |||
|Object Constructor takes an optional key to be used for encryption/decryption. | |Object Constructor takes an optional key to be used for encryption/decryption. | ||
|- | |- | ||
|[[JSimpleCrypt:: | |public | ||
| | |[[API17:JSimpleCrypt::decrypt|decrypt]] | ||
|Decrypt. | |||
|- | |- | ||
|[[JSimpleCrypt:: | |public | ||
| | |[[API17:JSimpleCrypt::encrypt|encrypt]] | ||
|Encrypt. | |||
|- | |- | ||
|[[JSimpleCrypt:: | |protected | ||
| | |[[API17:JSimpleCrypt::_charToInt|_charToInt]] | ||
|CharToInt. | |||
|- | |- | ||
|[[JSimpleCrypt:: | |protected | ||
| | |[[API17:JSimpleCrypt::_hexToInt|_hexToInt]] | ||
|HextoInt. | |||
|- | |- | ||
|[[JSimpleCrypt:: | |protected | ||
| | |[[API17:JSimpleCrypt::_hexToIntArray|_hexToIntArray]] | ||
|HexToIntArray. | |||
|- | |- | ||
|[[JSimpleCrypt:: | |protected | ||
| | |[[API17:JSimpleCrypt::_intToHex|_intToHex]] | ||
|inToHex | |||
|- | |- | ||
|[[JSimpleCrypt:: | |protected | ||
| | |[[API17:JSimpleCrypt::_xorCharString|_xorCharString]] | ||
|Decrypt. | |||
|- | |- | ||
|[[JSimpleCrypt:: | |protected | ||
| | |[[API17:JSimpleCrypt::_xorString|_xorString]] | ||
|XorString. | |||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/utilities/simplecrypt.php | |||
* '''Extends''' [[API17:JObject|JObject]] | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.utilities.simplecrypt' );</source> | <source lang="php">jimport( 'joomla.utilities.simplecrypt' );</source> | ||
===See also=== | ===See also=== | ||
* [[ | * {{JVer|11.1}} '''JSimpleCrypt source code''' on [[jplatform:utilities/simplecrypt.php|BitBucket]] | ||
{{ | * {{JVer|11.1}} Subpackage [[API17:Subpackage Utilities|Utilities]] | ||
* [[API17:JSimpleCrypt|Other versions of JSimpleCrypt]] | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JSimpleCrypt | category=JSimpleCrypt | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:42, 25 March 2017
JSimpleCrypt
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Object Constructor takes an optional key to be used for encryption/decryption. |
| public | decrypt | Decrypt. |
| public | encrypt | Encrypt. |
| protected | _charToInt | CharToInt. |
| protected | _hexToInt | HextoInt. |
| protected | _hexToIntArray | HexToIntArray. |
| protected | _intToHex | inToHex |
| protected | _xorCharString | Decrypt. |
| protected | _xorString | XorString. |
- Defined in libraries/joomla/utilities/simplecrypt.php
- Extends JObject
Importing
jimport( 'joomla.utilities.simplecrypt' );
See also
JSimpleCrypt source code on BitBucket
Subpackage Utilities- Other versions of JSimpleCrypt
User contributed notes
Code Examples