Drupal is a registered trademark of Dries Buytaert
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)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

field_encrypt

2,576 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 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
4 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