Skip to main content

An encrypted environment variable manager for developers.

Project description

NexVault

NexVault is a secure command-line tool for storing, managing, importing, exporting, and injecting environment variables using password-based encryption.

Instead of storing secrets in plaintext .env files, NexVault keeps them inside an encrypted vault protected by your password. Export them only when needed or inject them directly into your application at runtime.

Features

  • Password-protected encrypted vault
  • Securely store and retrieve environment variables
  • Store multiple key-value pairs in a single command
  • List all stored keys
  • Run applications with injected environment variables
  • Export secrets to a .env file
  • Import existing .env files into the vault
  • Export and import portable .nexvault backup files
  • Copy secret values or .env content directly to the clipboard
  • Built with modern cryptography

Installation

pip install nexvault

Quick Start

Initialize a vault

nexvault init

Check files for hardcoded secrets

nexvault check

Store a secret

nexvault set API_KEY your-secret

Store multiple secrets

nexvault setmul \
  API_KEY=your-secret \
  DATABASE_URL=postgres://localhost/db \
  DEBUG=true

Retrieve a secret

nexvault get API_KEY

Copy a secret to the clipboard

nexvault get API_KEY --copy

Remove a key

nexvault remove API_KEY 

Remove multiple key

nexvault removemul API_KEY API_KEY_2 API_KEY_3

List all stored keys

nexvault list

Run an application with injected environment variables

nexvault run python main.py

You can run any executable or command through NexVault, and all stored environment variables will be securely injected into the child process.

Examples:

nexvault run node app.js
nexvault run npm start
nexvault run cargo run

Export to a .env file

nexvault toenv

Copy .env content to the clipboard

nexvault toenv --copy

Import an existing .env file

nexvault fromenv

Export the encrypted vault

nexvault export

This creates a portable .nexvault backup that can be shared or archived.

Import a .nexvault backup

nexvault importfile backup.nexvault

Security

NexVault derives encryption keys from your password and uses authenticated encryption to protect all stored secrets.

Environment variables remain encrypted at rest and are only decrypted when explicitly requested or temporarily injected into a child process with the run command.

License

Licensed under the Apache License 2.0.

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

nexvault-1.4.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexvault-1.4.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file nexvault-1.4.0.tar.gz.

File metadata

  • Download URL: nexvault-1.4.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nexvault-1.4.0.tar.gz
Algorithm Hash digest
SHA256 f9c8eb768634ac0f54904e106906e3538bf18107750d04160b948c34323654e2
MD5 9d88bd6ca14360a159a24cc77d7c080a
BLAKE2b-256 86e695b7885efd78cef8b1ef3761f0f1fa8eb9dd499d3ccf0d16a324dfa33ca1

See more details on using hashes here.

File details

Details for the file nexvault-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: nexvault-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nexvault-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52951c75f1358e1bde77456d0598737135ff6465f21bd1d046cf3e0d0b76a271
MD5 cef957a236ec6ee67412a060800675d3
BLAKE2b-256 b0cc418a99ca24de905803945a700d9200f6fd3bac19279d55247f18341531da

See more details on using hashes here.

Supported by

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