API15

API15:JSimpleCrypt/encrypt

From Joomla! Documentation

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

encrypt($s)
Parameter Name Default Value Description
$s

Defined in

libraries/joomla/utilities/simplecrypt.php

Importing

jimport( 'joomla.utilities.simplecrypt' );

Source Body

function encrypt($s)
{
        $ai = $this->_xorCharString($s);
        $s1 = "";
        for ($i = 0; $i < count($ai); $i++)
                $s1 = $s1 . $this->_intToHex((int) $ai[$i]);
        return $s1;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples