Skip to main content

EnvCrypted is a high-performance Python 3.12+ package that encrypts all environment variables using age encryption with ephemeral keys generated at runtime. It seamlessly integrates by monkey-patching `os.getenv` to return decrypted values, while ensuring that all other access methods yield encrypted data. Designed for efficiency, EnvCrypted operates with near-zero latency, making it ideal for performance-critical applications. (Note: This package is highly experimental!)

Project description

EnvCrypted

EnvCrypted is a high-performance Python 3.12+ package that encrypts all environment variables using age encryption with ephemeral keys generated at runtime. It seamlessly integrates by monkey-patching os.getenv to return decrypted values, while ensuring that all other access methods yield encrypted data. Designed for efficiency, EnvCrypted operates with near-zero latency, making it ideal for performance-critical applications.

The package leverages Pyrage, the Python bindings for the Rust port of age, to provide robust encryption capabilities. Additionally, EnvCrypted offers optional integration with Pydantic Settings and 1Password through the latest onepassword-sdk package, enhancing its versatility in secure environments by leveraging 1Password Service Accounts as a Pydantic Settings Source.

Note: This package is highly experimental!

License

This package is licensed under the Apache 2.0 license.

EnvCrypted is not affiliated with 1Password, Pydantic, or any other projects, services, or entities referenced or depended upon by this package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envcrypted-0.0.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

envcrypted-0.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file envcrypted-0.0.1.tar.gz.

File metadata

  • Download URL: envcrypted-0.0.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for envcrypted-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9c7abae7e8287eb3ea2a8dbb448e33c6b41c38f6421dda25611b1e1cd11c08a9
MD5 3ca01c4f46607770ba138bf038f90e37
BLAKE2b-256 d7837fd4df929b99eea3cec588526b5a44c5eb9771ba5ca11c9d2d8197d6f94a

See more details on using hashes here.

File details

Details for the file envcrypted-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: envcrypted-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for envcrypted-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 281d7938d5ed1b9d298db29c8e16170a2aa017aa477e8a48868e76a2cbdb19d3
MD5 fcc1cd180e8ec76a7608ffa807b135fb
BLAKE2b-256 4d60fb27c93c7e9eec74b5105fb6fe2d734d22a9ea6255db2e46ae1de794f428

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page