SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Encrypt

The Encrypt library provides two-way encryption of text and binary strings
using the MCrypt extension (http://php.net/mcrypt)

Variables

NameVisibilityDescription
$config 
$rand (static) 

Functions

NameVisibilityDescription
__constructpublicLoads encryption configuration and validates the data.
decodepublicDecrypts an encoded string back to its original value.
encodepublicEncrypts a string and returns an encrypted string that can be decoded.
instancepublic (static)Returns a singleton instance of Encrypt.

public __construct

void $Encrypt->__construct ( [ array|string $config ] );

Loads encryption configuration and validates the data.

public decode

string $Encrypt->decode ( string $data );

Decrypts an encoded string back to its original value.

public encode

string $Encrypt->encode ( string $data );

Encrypts a string and returns an encrypted string that can be decoded.

public instance

Encrypt Encrypt::instance ( [ array $config ] );

Returns a singleton instance of Encrypt.