This package is abandoned. Please use plenta/contao-encryption.
A replacement service for the deprecated Contao encryption class (Contao\Encryption).
Search for encryption and you will find this extension.
composer require brkwsky/contao-encryption
// tl_member
$GLOBALS['TL_DCA']['tl_member']['fields']['bank_iban'] = [
'label' => &$GLOBALS['TL_LANG']['tl_member']['bank_iban'],
'exclude' => true,
'inputType' => 'text',
'eval' => [
'mandatory' => false,
'maxlength' => 32,
'tl_class' => 'w50',
'feEditable' => true,
'feGroup' => 'bank'
],
'load_callback' => [
['brkwsky.encryption', 'decrypt']
],
'save_callback' => [
['brkwsky.encryption', 'encrypt']
],
'sql' => "varchar(32) NOT NULL default ''"
];
$encryptionService = \Contao\System::getContainer()->get('brkwsky.encryption');
$urlParameter = $encryptionService->encryptUrlSafe('value');
$urlGetParameter = \Contao\Input::get('parameter');
$encryptionService->decryptUrlSafe($urlGetParameter);