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. (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.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: envcrypted-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 69b6b14733d3fa219f64a5be5d07c4c113a3ef0596b8354db1b869cb5913d3fb
MD5 d25b426423dd398bcd106759006248c9
BLAKE2b-256 1679f15ab1d58dc603cc7141593a165b03584c51524f402b6224857a4253f546

See more details on using hashes here.

File details

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

File metadata

  • Download URL: envcrypted-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78d8440a58e494c0ba180149ad169123e12354f83fb0a4a8d6f5a52cce805830
MD5 7aef610ebbe7401aa306c71a1d21ee48
BLAKE2b-256 9706c40f596949837750fa746f3dd7b9b1c9c3b515bdb257111da50eb8ce9889

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