UNB Components Code Reference

UnbSession::Encrypt method

Encrypts data with the system encrpytion key.

public static function UnbSession::Encrypt ($data);

Parameters

data
(string) Data to encrypt

Return value

(string) Encrypted data in base64 encoding

Remarks

This function uses Twofish encryption in ECB mode which is best suitable for short input data like keys and passwords. It is not recommended for file contents. See the PHP manual about the mcrypt library for details.

Member of class: UnbSession

Implementation file: session.class.php, line 531

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.