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 requires a new major version

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

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.

Incompatible modules

Important

Since this is module deals with encryption of data, presumably will be used to secure sensitive data, use the DEV, ALPHA, and BETA versions with extreme caution.

Short name
field_encrypt
Supporting organizations
Drupal 8 porting support
Sponsored 3.0.x for Drupal 8 & 9