Indexed field unable to encrypt (Date Field)

Created on 10 September 2019, over 5 years ago
Updated 12 March 2025, 24 days ago

Hello,

I am facing an issue that indexed field is unable to encrypt.

I have added a field birthdate which I wanted to stored encrypted value.
So when I edit that field to enable encryption, but the field encryption not available.

There should be a checkbox option "Encrypt this field" available but its not present there.

I am using date module version as 7.x-2.11-beta2 and field_encryption module version as 7.x-1.0-beta3.

Is there any specific reason that it cannot allow to encrypt indexed fields?

When I checked in module file I found below code in field_encrypt.module :-
Line no. - 68

// Check that there are encryptable columns on this field as Indexes can not
  // be encrypted.
  if (array_keys($field_info['columns']) == array_keys($field_info['indexes'])) {
    return;
  }
💬 Support request
Status

Closed: outdated

Component

Code

Created by

🇮🇳India ravimane23

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇯🇵Japan ptmkenny

    Drupal 7 is EOL (end of life) so 7.x issues are now being closed. If this is still an issue with the Drupal 8+ versions of the module, feel free to open a new issue.

Production build 0.71.5 2024