Log in
Model

Encrypted

Magento\Config\Model\Config\Backend\Encrypted

What it does

This backend model handles encrypted configuration values in Magento 2's system configuration.

Developers use it by specifying it as the backend_model in system.xml when storing sensitive data like API keys, passwords, or tokens.

It automatically encrypts values before saving and decrypts them when loading, while preventing re-encryption of unchanged obscured values (displayed as asterisks).

Public Methods

  • beforeSave()
  • processValue()