API16

JSimpleCrypt/encrypt

< API16:JSimpleCrypt

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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;
}



Examples

Code Examples


Advertisement