All Projects → acro5piano → dotenv-vault

acro5piano / dotenv-vault

Licence: other
[deprecated] simple dotenv encrypt & decrypt tool inspired by yaml_vault

Programming Languages

shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to dotenv-vault

dotenv
Load .env files in crystal
Stars: ✭ 16 (-40.74%)
Mutual labels:  dotenv
seal
Easily encrypt files, notes, and passwords
Stars: ✭ 16 (-40.74%)
Mutual labels:  password-manager
PasswordKeeper
Web-app to help you securely store your encrypted passwords in your Google Drive.
Stars: ✭ 43 (+59.26%)
Mutual labels:  password-manager
dotenv validator
This gem check if required env variables are present and its format using the .env and .env.sample files from Dotenv.
Stars: ✭ 33 (+22.22%)
Mutual labels:  dotenv
php-env
A small and fast .env loader for PHP
Stars: ✭ 19 (-29.63%)
Mutual labels:  dotenv
dotenv-load
Load environment variables from .env, .env.local, .env.production, etc. when running a npm or yarn command.
Stars: ✭ 27 (+0%)
Mutual labels:  dotenv
Password-Manager
Self-hosted Password Manager based on Laravel 9 + PHP 8 + MySQL 8. Gestor de Contraseñas basado en Laravel 9 + PHP 8 + MySQL 8.
Stars: ✭ 94 (+248.15%)
Mutual labels:  password-manager
entropass
Maximum-security password manager
Stars: ✭ 21 (-22.22%)
Mutual labels:  password-manager
Allpass
Allpass是一款简洁的私密信息管理工具,包括密码管理与卡片信息管理,支持指纹解锁软件、csv导入导出、从Chrome中导入、从剪贴板中导入、文件夹与标签功能、收藏与备注功能、密码生成器、WebDAV同步等功能,采用Flutter构建
Stars: ✭ 82 (+203.7%)
Mutual labels:  password-manager
ngx-env
Easily inject environment variables into your Angular applications
Stars: ✭ 73 (+170.37%)
Mutual labels:  dotenv
sandpass
Password manager for Sandstorm
Stars: ✭ 26 (-3.7%)
Mutual labels:  password-manager
passbolt ansible
A complete (set of) playbook(s) to selfhost passbolt.
Stars: ✭ 15 (-44.44%)
Mutual labels:  password-manager
gpgpwd
Moved to GitLab
Stars: ✭ 22 (-18.52%)
Mutual labels:  password-manager
angular-cli-envvars
Example project for my article "Angular CLI and OS Environment Variables"
Stars: ✭ 56 (+107.41%)
Mutual labels:  dotenv
dump-env
A utility tool to create .env files
Stars: ✭ 81 (+200%)
Mutual labels:  dotenv
PasswordExtension
Let users use a third party password manager right in your own app.
Stars: ✭ 28 (+3.7%)
Mutual labels:  password-manager
gnome-pass-search-provider
Pass password manager search provider for gnome-shell
Stars: ✭ 52 (+92.59%)
Mutual labels:  password-manager
PasswordSafe
Cross platform password manager.
Stars: ✭ 14 (-48.15%)
Mutual labels:  password-manager
dotenv
Loads environment variables from `.env`.
Stars: ✭ 88 (+225.93%)
Mutual labels:  dotenv
bitw
Minimalist BitWarden client
Stars: ✭ 110 (+307.41%)
Mutual labels:  password-manager

Use git-crypt https://github.com/AGWA/git-crypt

No more maintained. Use other tools.

CircleCI

dotenv-vault

simple dotenv encrypt tool inspired by yaml_vault

Default cipher is aes-256-cbc. Default sign digest is SHA256.

Install

For MacOS:

git clone https://github.com/acro5piano/dotenv-vault ~/.dotenv-vault
ln -sfnv ~/.dotenv-vault/bin/dotenv-vault /usr/local/bin/dotenv-vault

For Linux:

git clone https://github.com/acro5piano/dotenv-vault ~/.dotenv-vault
sudo ln -sfnv ~/.dotenv-vault/bin/dotenv-vault /usr/bin/dotenv-vault

Requirements

dotenv-vault requires the following:

  • Bash >= 2
  • Openssl >= 2
  • Perl >= 5

Almost all machine does not need any additional installation process.

Usage

Encrypt

Input file (.env):

NODE_ENV=development
API_KEY=123456789

Command:

$ dotenv-vault -e API_KEY -k foobarbaz encrypt .env

where -e specify the key you encrypt.

Output:

NODE_ENV=development
API_KEY=U2FsdGVkX186T6zdupR27pXHO0Hdnz9rqZfVdgqBEqk=

Decrypt

Input file (.env.encrypted):

NODE_ENV=development
API_KEY=U2FsdGVkX186T6zdupR27pXHO0Hdnz9rqZfVdgqBEqk=

Command:

$ dotenv-vault -e API_KEY -k foobarbaz decrypt .env

Output:

NODE_ENV=development
API_KEY=123456789

Create Encrypt env

dotenv-vault create command is convenient to create new entry:

$ bin/dotenv-vault -k foobarbaz create 'SOME_KEY=123456'

# => SOME_KEY=U2FsdGVkX18tEclKImEV30HSG0b7IOu3dyO3MpceCd4=

You can paste or redirect to register new entry like this:

$ bin/dotenv-vault -k foobarbaz create 'SOME_KEY=123456' >> .env

Options

  • -k specify password
  • -e specify the key to encrypt or decrypt. You can use Regular Expression like -e 'A_KEY|ANOTHER_KEY|SECRET_.*'

Password Option

  • If -k option present, use it as password.
  • If DOTENV_PASSWORD environment variable present, use it as password.
  • If .dotenv-password file present, use the content of the file as password.
  • Else, dotenv-vault ask you at runtime.

Note you must not include the .dotenv-password file to any repo.

Update

cd ~/.dotenv-vault
git pull origin master

Development

After checking out the repo, run make to run all tests.

TODO

  • Add .dotenv-password to save the password
  • Add auth methods
    • AWS KMS
    • GCP KMS
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].