https://github.com/vaspapadopoulos/cryptenv
A Python-based CLI to encrypt and decrypt variables in .env files
https://github.com/vaspapadopoulos/cryptenv
argparse decryption dotenv encryption python
Last synced: 20 days ago
JSON representation
A Python-based CLI to encrypt and decrypt variables in .env files
- Host: GitHub
- URL: https://github.com/vaspapadopoulos/cryptenv
- Owner: vaspapadopoulos
- License: mit
- Created: 2023-04-27T14:21:29.000Z (about 3 years ago)
- Default Branch: dev
- Last Pushed: 2023-05-07T16:29:44.000Z (about 3 years ago)
- Last Synced: 2025-12-15T03:36:35.084Z (6 months ago)
- Topics: argparse, decryption, dotenv, encryption, python
- Language: Python
- Homepage: https://pypi.org/project/cryptenv
- Size: 36.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cryptenv
[](https://www.python.org/)
A Python-based CLI to encrypt and decrypt variables in `.env` files.
## Installation
## Usage
### Examples
Encrypt and decrypt a single variable in a `.env` file:
```shell
cryptenv.py encrypt -f .env.myproject PASSWORD
cryptenv.py decrypt -f .env.myproject API_TOKEN
```
Encrypt all variables in a `.env` file:
```shell
cryptenv.py encrypt -f .env.myproject --all
```
Decrypt all encrypted variables, if any, in a `.env` file:
```shell
cryptenv.py decrypt -f .env.myproject
```