Skip to main content

damv1dotenvsecretdec

Overview
damv1dotenvsecretdec is a Python package designed to securely decrypt encrypted environment files and load environment variables into your application. This allows you to manage sensitive configuration settings safely.


Features

  • Decrypt encrypted environment files (e.g., .envsecret).
  • Securely load environment variables without storing plain-text secrets.
  • Currently supports OpenSSL AES-256 decryption.

Installation

pip install damv1dotenvsecretdec

Usage

from damv1dotenvsecretdec import Load

Usage (OpenSSL Method)
This section demonstrates how to use the OpenSSL-based decryption method.

from damv1dotenvsecretdec import OpenSSL

# Load encrypted .envsecret file
env_vars = OpenSSL.load_encrypted_dotenvsecret("path/to/.envsecret", "your-password", iteration=1000)

# Access environment variables
if env_vars:
    print(env_vars.get("SECRET_KEY"))

Encrypting a .envsecret file (for OpenSSL Method)
To create an encrypted .envsecret file using OpenSSL:

openssl enc -aes-256-cbc -pbkdf2 -iter 100 -salt -in .env -out .envsecret -k "your-password"

This will encrypt the .envsecret file into .envsecret.enc.

Metadata

Release files for damv1dotenvsecretdec 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for damv1dotenvsecretdec 0.1.0
File Interpreter ABI Platform Actions
damv1dotenvsecretdec-0.1.0-py3-none-any.whl Python 3 none any Details for damv1dotenvsecretdec-0.1.0-py3-none-any.whl

Release files / damv1dotenvsecretdec-0.1.0-py3-none-any.whl

Download URL damv1dotenvsecretdec-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c6d0074654a380f4ded2fe546840bf4c66280a05fb2bd620f78475e182d9433
BLAKE2b-256 checksum
How to use checksums
dedbb94e7c8f896d4bd7521e2a6a2296eabc0bbc8510e77bc050f6e3c7d538ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.3

Security for damv1dotenvsecretdec 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page