Cryptography, key management and multi-factor authentication for Mutamad:
- authenticated AES-256 encryption (Real AES), with keys held outside the database and the web root
- multi-factor authentication with an authenticator app and recovery codes, whose secrets those keys protect
No key, salt or credential is shipped: each site generates its own. Aligned to NCA ECC-2:2024 2-2-2 and the cryptography controls.
Part of Mutamad
Part of Mutamad, the Drupal distribution for Saudi government websites. Mutamad Standard Site applies it on every Mutamad site.
Requirements
Installation
Set a private file path in settings.php first, outside the web root: $settings['file_private_path'] = '../private';
Then create the key file: see "Keys are not configuration" in Mutamad Crypto's README.
composer require drupal/mutamad_crypto 'drupal/tfa:^2.0@alpha'
Sites started from the Mutamad project template already allow the alpha modules in this command, and can skip it.
drush recipe ../recipes/mutamad_crypto
Documentation
The README explains every setting and why, and the changelog what changed in each release.
Ask your assistant about Mutamad Crypto
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | Nov 15, 2026 |