Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

field_encrypt

2,914 sites Security covered
View on drupal.org

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.

Activity

Total releases
8
First release
Mar 2025
Latest release
5 months ago
Release cadence
39 days
Stability
25% stable

Release Timeline

Releases

Version Type Release date
4.1.0-beta1 Pre-release Dec 9, 2025
4.0.0 Stable Dec 9, 2025
4.0.x-dev Dev Dec 9, 2025
4.0.0-beta2 Pre-release Jul 26, 2025
4.0.0-beta1 Pre-release Jul 23, 2025
4.0.0-alpha2 Pre-release May 14, 2025
4.0.0-alpha1 Pre-release Mar 12, 2025
3.2.1 Stable Mar 10, 2025