Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Field Encryption

3,029 sites Security covered Drupal 11 · not 10
View on drupal.org

This module provides the ability to encrypt field values stored in the database. It relies on the Encrypt module for its encryption and decryption capabilities, and configuration is managed through the field edit page. Be aware that encrypted fields may not function with certain Views filters, entity queries, or entity query constraints, and some bundle fields are not supported.

Adds options to encrypt field values.

The goal of this module is to create a method for encrypting and decrypting field values when stored in the database.

This module depends on the Encrypt module for encrypting and decrypting strings.

Install this module like any other module. Field encryption settings are made on the field edit page.

Original code created by adaddinsane

Known Issues

Drupal 11.1 and 11.2 require 4.0.x

Drupal 11.1 made several changes to the hooks system, which required us to rewrite this module (the 4.x branch).

Drupal 11.3+ requires 4.1.x

Drupal 11.3 made some more changes to the hooks system, so you will need to update to 4.1+.

No views filter support

Since the field data is encrypted these field values will not work with Views Filters, regular, exposed or contextual. See more discussion in this issue.

No query comparison support

Encrypted fields cannot be queried using APIs that depend on direct database value comparisons, such as entityQuery(), EntityTypeManager::loadByProperties(), and direct database queries.

No entity query constraint support (e.g., UniqueField)

Because of the way this module is implemented, field constraints that rely on an entity query (e.g., UniqueField) will not work (the values of the fields cannot be checked by the entity query). For more information, see this issue: Field Encryption prevents UniqueField from working as intended.

Bundle fields created with ContentEntityBase::bundleFieldDefinitions() are not supported

Bundle fields created via Field UI module can be encrypted, but bundle fields created with ContentEntityBase::bundleFieldDefinitions() are not currently supported.

Incompatible modules

Important

Since this is module deals with encryption of data, which is presumably sensitive data, use the DEV, ALPHA, and BETA versions with extreme caution.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
11
Tracked since
Nov 2024
Latest release
2 months ago
Releases (12 mo)
4 ▼ from 7
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
4.1.0 Stable 11 Jun 14, 2026
4.1.0-beta1 Pre-release 11 Dec 9, 2025
4.0.0 Stable Dec 9, 2025
4.0.x-dev Dev Dec 9, 2025
4.0.0-beta2 Pre-release 11 Jul 25, 2025
4.0.0-beta1 Pre-release 11 Jul 23, 2025
4.0.0-alpha2 Pre-release 11 May 14, 2025
4.0.0-alpha1 Pre-release 11 Mar 12, 2025
3.2.1 Stable 10 Mar 10, 2025
4.x-dev Dev 11 Nov 13, 2024
3.2.0 Stable 10 Nov 12, 2024