EQdkp Plus Navigation:   Home  |   Forum  |   Wiki  |   Translate  |   Bugtracker  |   WebSVN  |  USVN

Encrypt

From EQdkp Plus Wiki

Information
min. EQDKP-PLUS Version 0.7.0.0




The class-file is included in common.php, so there is no need to include it again. The class is NOT initialized.

Contents

Init

$myCrypt = new mmocms_encrypt();

Defaults of Constructor

public function __construct($strEncryptionKey = '', $strKeyLength = 256){

If $strEncryptionKey is empty, the global var $encryptionKey, located in config.php, will be used.

Functions

Encryption

$strEncrypted = $myCrypt->encrypt('myValue');

Decrypt

$strDecrypted = $myCrypt->decrypt('myEncryptedValue');