This is the documentation for concrete5 version 5.6 and earlier. View Current Documentation

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’);

Methods

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

Takes $text and encrypts it.

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

Takes $encryptedText and decrypts it.

$eh->isAvailable()

Returns true if encryption is available, otherwise false.

Loading Conversation