

The Encryption helper wraps common PHP libraries in a way that makes it easy to encrypt data for more secure storage.

Requires the PHP mcrypt extension. If this extension is unavailable, encrypt and decrypt will simply pass text back!

Loading the Helper

$eh = Loader::helper(‘encryption’);


$encryptedText = $eh->encrypt($text)

Takes $text and encrypts it.

$text = $eh->decrypt($encryptedText)

Takes $encryptedText and decrypts it.


Returns true if encryption is available, otherwise false.

Loading Conversation