Actions

API16

JSimpleCrypt/encrypt

From Joomla! Documentation

< API16:JSimpleCrypt
Revision as of 17:55, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton]

Description:JSimpleCrypt/encrypt

Contents

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

[Edit See Also] SeeAlso:JSimpleCrypt/encrypt

Examples

<CodeExamplesForm />