aws-encryption-sdk
AWS Encryption SDK implementation for Python
Decision gist · record as of 2026-08-14
Yes. This is a production-grade, actively maintained library from AWS with no known vulnerabilities, permissive licensing, and low install friction. Install it if you need to encrypt/decrypt data with AWS KMS in Python. The modern keyring API requires the optional aws-cryptographic-material-providers library (Python 3.11+), but the core client works with Python 3.8+. The legacy master key provider API is discouraged but still functional.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8+.
- Keyrings and cryptographic material managers require the optional aws-cryptographic-material-providers library (which requires Python 3.11+).
- System dependencies for cryptography may be needed on some platforms.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 (permissive) allows commercial and private use with minimal restrictions, making it suitable for most production environments.
last release 2026-05-07 (99 days) · last repo commit 2026-08-10 · 253 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,644,793 downloads/mo, #2,545 on PyPI
Alternatives
Verify before relying
pip install aws-encryption-sdk
import aws_encryption_sdk
from aws_encryption_sdk.identifiers import CommitmentPolicy
client = aws_encryption_sdk.EncryptionSDKClient(
commitment_policy=CommitmentPolicy.REQUIRE_ENCRYPT_REQUIRE_DECRYPT
)- Whether the legacy master key provider API is still widely used or if migration to keyrings is now standard practice
- Performance characteristics and throughput limits for large-scale encryption/decryption workloads
- Compatibility guarantees with different AWS KMS key types and regions
What it is and what it does
The AWS Encryption SDK for Python provides a native implementation of AWS's encryption standard, enabling you to encrypt and decrypt data using AWS KMS keys. It wraps cryptography, boto3, attrs, and wrapt to manage encryption workflows, supporting both modern keyring-based approaches and legacy master key provider patterns. The library handles data key generation, encryption, and decryption through configurable keyrings or cryptographic materials managers, with built-in support for multi-key scenarios and discovery-based decryption.
The package is designed for developers who need to encrypt sensitive data in Python applications using AWS KMS as the key management backend. It abstracts away the complexity of envelope encryption (encrypting data keys with KMS master keys) and provides a straightforward client API for encrypt/decrypt operations. The library has been in production use since 2017 and is actively maintained by AWS.
Use it for
- Encrypt application data at rest using AWS KMS keys managed in your AWS account
- Decrypt data encrypted by other AWS Encryption SDK implementations across languages
- Implement multi-key encryption where multiple KMS keys can decrypt the same ciphertext
- Decrypt data when KMS key ARNs are unknown using discovery keyrings with account filters
- Migrate from legacy master key provider patterns to modern keyring-based encryption
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a production-grade, actively maintained library from AWS with no known vulnerabilities, permissive licensing, and low install friction. Install it if you need to encrypt/decrypt data with AWS KMS in Python. The modern keyring API requires the optional aws-cryptographic-material-providers library (Python 3.11+), but the core client works with Python 3.8+. The legacy master key provider API is discouraged but still functional.
Install
aws-encryption-sdk on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained as of 2026-05-07, with recent commits and 253 GitHub stars. Requires cryptography >= 3.4.6, boto3 >= 1.10.0, attrs, and wrapt as runtime dependencies.
Requires Python 3.8+. Keyrings and cryptographic material managers require the optional aws-cryptographic-material-providers library (which requires Python 3.11+). System dependencies for cryptography may be needed on some platforms.
License in practice
Apache License 2.0 (permissive) allows commercial and private use with minimal restrictions, making it suitable for most production environments.
Quickstart
pip install aws-encryption-sdk
import aws_encryption_sdk
from aws_encryption_sdk.identifiers import CommitmentPolicy
client = aws_encryption_sdk.EncryptionSDKClient(
commitment_policy=CommitmentPolicy.REQUIRE_ENCRYPT_REQUIRE_DECRYPT
)
Verify before relying
- Whether the legacy master key provider API is still widely used or if migration to keyrings is now standard practice
- Performance characteristics and throughput limits for large-scale encryption/decryption workloads
- Compatibility guarantees with different AWS KMS key types and regions
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesboto3cryptographyattrswrapt |
| Maintenance | Actively maintained 99 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,644,793 / month, #2,545 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: SecurityTopic :: Security :: Cryptography |
Evidence: aws_encryption_sdk-4.0.6-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “aws encryption sdk python”
- aws-encryption-sdkEncrypts and decrypts data using AWS KMS keys and keyrings,…
- aws-encryption-sdk-cliCommand-line tool to encrypt and decrypt files and directories using…
- dynamodb-encryption-sdkEncrypts and decrypts DynamoDB items client-side before transmission,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Security packages
Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.
MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.
joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.
Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.
Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.
ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.
Install only if maintaining existing code that already depends on it, and plan a migration.
See also aws-cryptographic-material-providers · aws-encryption-sdk-cli · dynamodb-encryption-sdk · http-ece · aliyun-python-sdk-kms · kasa-crypt · credstash · keyrings.alt · keyrings.cryptfile · xxtea