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: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). 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. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Usage Milestone: Devel PHP Module devel_php crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Cryptolog

78 sites Security covered Drupal 11 · not 10
View on drupal.org

Cryptolog enhances user privacy by logging a daily rotating, hashed version of client IP addresses instead of their actual values. This allows for basic statistical analysis while helping to comply with privacy regulations like GDPR. The module ensures that Drupal's built-in security features, such as flood control, continue to function correctly.

Cryptolog enhances user privacy (and compliance with data protection and consumer privacy regulations such as GDPR, CCPA/CPRA, etc.) by logging ephemeral identifiers in place of client IP addresses in Drupal logs and database tables.

When Cryptolog is enabled, \Drupal::request()->getClientIp() and Drupal 7's ip_address() output a 128-bit keyed hash of the client IP address (in IPv6 notation), using a key that is stored in the cache and regenerated each day.

Because Cryptolog uses the same unique identifier per IP address for a 24-hour period, it is still possible to do some statistical analysis of the logs such as counting unique visitors per day. In addition, unlike other solutions of setting $_SERVER['REMOTE_ADDR'] to either one static IP address or a completely random IP address, Drupal's flood control mechanisms still function as normal.

Note: As long as the key can still be retrieved, brute force can be used to generate a rainbow table and reverse engineer client IPv4 addresses. However, once the key has expired and a new key regenerated, or if the key was stored only in memory and the web server has been shutdown or restarted, it should not be feasible to determine client IP addresses, aside from using forensic methods on unencrypted swap space, etc.

Requirements:

Cryptolog has no special requirements, although APCu PHP extension, Memcache module and/or Redis module are recommended to serve as an in-memory cache. If available, Sodium PHP extension will be used to generate BLAKE2b keyed hashes, otherwise falling back to HMAC-MD5 keyed hashes.

Drupal 7 requirements:

One of the following: APCu PHP extension or Memcache module is required as an in-memory key/value store for the key. The backend store will be chosen automatically based on which backends are present, with a preference for Memcache which can be shared between servers. Please note that after enabling the module, you must also add it to your site's settings.php file! See README.txt for instructions. Likewise to disable the module you must remove it from your site's settings.php file. If available, Sodium PHP extension will be used to generate BLAKE2b keyed hashes, otherwise falling back to HMAC-MD5 keyed hashes.

Similar modules:

IP Anonymize logs IP addresses as per normal, and then retroactively scrubs them according to a configurable IP address retention period.

Credits:

This module was inspired by the Cryptolog Python log filter script and developed by mfb. You can support development by contributing or sponsoring.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Aug 2025
Latest release
2 weeks ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.3.0 Stable 11 Aug 14, 2026
8.x-1.14 Stable 8–10 Aug 14, 2026
2.2.4 Stable 10–11 Aug 13, 2026
2.2.3 Stable 10–11 Aug 18, 2025