PHPackages                             shane310/encrypt\_kms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. shane310/encrypt\_kms

ActiveDrupal-module[Security](/categories/security)

shane310/encrypt\_kms
=====================

Provides an AWS KMS encryption method for Encrypt though the AWS SDK.

07.0kPHP

Since Apr 23Pushed 4y agoCompare

[ Source](https://github.com/shane310/drupal-encrypt_kms)[ Packagist](https://packagist.org/packages/shane310/encrypt_kms)[ RSS](/packages/shane310-encrypt-kms/feed)WikiDiscussions 8.x-1.x Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Encrypt KMS
===========

[](#encrypt-kms)

BranchBuild Status[8.x-1.x](https://www.drupal.org/project/encrypt_kms/releases/8.x-1.x-dev)[![CircleCI](https://camo.githubusercontent.com/f239bd129c01e718806522d684b4bbdbd3fca3a7a114b76b16671c8bf73ac4f6/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f6e69636b73616e74616d617269612f64727570616c2d656e63727970745f6b6d732f382e782d312e782e7376673f7374796c653d666f722d7468652d6261646765)](https://circleci.com/gh/nicksantamaria/drupal-encrypt_kms/tree/8.x-1.x)This Drupal module adds a new encryption method for the [Encrypt framework](https://www.drupal.org/project/encrypt) - it allows you to encrypt data using [AWS KMS](https://aws.amazon.com/kms/).

Get Started
-----------

[](#get-started)

This guide assumes you have an AWS account and working knowledge of KMS, and the following resources provisioned in AWS.

- A KMS key
- An IAM user with privileges to encrypt and decrypt using aforementioned key

Ensure this module and its dependencies are available in your codebase.

-
-
-

Enable the **Encrypt KMS** module.

Ensure your user account has the **administer encrypt** permission.

Add a new Key - select the **KMS Key** type and enter the ARN of the KMS key. This is just an identifier, and is completely fine to store in the "Configuration" storage provider.

Add a new **Encryption Profile** - choose the **Amazon KMS** encryption method and the key you just created.

Go to the **Encrypt KMS** configuration form and add your AWS IAM user credentials.

> PROTIP: Use the Key module's configuration override capability to securely store the AWS credentials.

Great, you are now set up and can use KMS to encrypt [fields](https://www.drupal.org/project/field_encrypt), [webform submissions](https://www.drupal.org/project/webform_encrypt) and lots more.

### AWS Credentials

[](#aws-credentials)

There are alternatives to configuring the AWS credentials in the admin form.

**settings.php**

```
$config['encrypt_kms.settings']['aws_key'] = 'foo';
$config['encrypt_kms.settings']['aws_secret'] = 'bar';

```

If you do not explicitly set AWS key and secret in config, it will fall back to:

- IAM Instance Profile
- Exported credentials in environment variables
- The default profile in a `~/.aws/credentials` file

See the AWS SDK Guide on [Credentials](http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/credentials.html).

Contribute
----------

[](#contribute)

Development of this module takes place on [GitHub](https://github.com/nicksantamaria/drupal-encrypt_kms).

- If you encounter issues, please [search the backlog](https://github.com/nicksantamaria/drupal-encrypt_kms/issues).
- Please [create issues](https://github.com/nicksantamaria/drupal-encrypt_kms/issues/new?labels=bug) and [feature requests](https://github.com/nicksantamaria/drupal-encrypt_kms/issues/new?labels=enhancement) in GitHub.
- Even better, feel free to fork this repo and [make pull requests](https://github.com/nicksantamaria/drupal-encrypt_kms/compare).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b15b162f623fcd361187ac414a84ee62112c6ae77e204782f2b8c98d1181214?d=identicon)[shane310](/maintainers/shane310)

---

Top Contributors

[![larowlan](https://avatars.githubusercontent.com/u/555254?v=4)](https://github.com/larowlan "larowlan (2 commits)")[![shane310](https://avatars.githubusercontent.com/u/18435495?v=4)](https://github.com/shane310 "shane310 (1 commits)")

### Embed Badge

![Health badge](/badges/shane310-encrypt-kms/health.svg)

```
[![Health](https://phpackages.com/badges/shane310-encrypt-kms/health.svg)](https://phpackages.com/packages/shane310-encrypt-kms)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
