Vault is a minimalistic CLI tool that encrypts and decrypts plain files into Vault files. (.vt).
The idea behind this tool is to have a CLI utility that can quickly and easily encrypt individual files, allowing users to securely store API tokens, secrets, credentials, or any private data on their own disk.
- Advertising
- Encryption
- Requirements
- Getting Started
- Install via go
- Install via wget
- Build requirements
- Help
- Other filename
- Build
- Install go
Are you also just a normal software developer or admin with lots of API keys, encryption keys or other secrets and credentials? Or do you simply have logs or plain text files that you want to send to someone securely? Then I have exactly what you are looking for today!
Hold on tight and take a closer look at this cli tool, because it might meet your exact needs.
Vault uses asymmetric RSA encryption and symmetric AES-256 encryption to keep your data as secure as possible.
To do this, vault uses private and public key on disk (default: ~/.ssh/id_rsa.pub) and also asks you for a password.
Currently no elliptic curve support! Just rsa.
Linux- or macos-like systems with go or wget & tar installed.
Start the latest repo version directly without leaving stuff in the current working dir:
go run github.com/NobleMajo/vault@latestFor this section go is required, check out the install go guide.
go install github.com/NobleMajo/vault@latestexport CUSTOM_BIN_DIR="/usr/local/bin" # <- change if needed
export VAULT_VERSION="" # <- set latest version here
rm -rf $CUSTOM_BIN_DIR/vault
wget https://github.com/NobleMajo/vault/releases/download/v$VAULT_VERSION/vault-v$VAULT_VERSION-linux-amd64.tar.gz -O /tmp/vault.tar.gz
tar -xzvf /tmp/vault.tar.gz -C $CUSTOM_BIN_DIR/ vault
rm /tmp/vault.tar.gzTo build, you need to install go.
The required go version is in the go.mod file.
Vault operations are sub commands defined via the first command line argument.
The following block is the main help output if you do not use a subcommand or use help:
Vault is a file encryption and decryption cli tool written in go.
For more help, visit https://github.com/NobleMajo/vault
Usage:
vault [flags]
vault [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
init Create a initial encrypted vault file for default text
lock Locks your plain file into a vault file
passwd Changes the password of your vault file
print Prints the decrypted content of your vault file
temp Temporary unlocks your vault file into a plain file
unlock Unlocks your vault file into a plain file
version Prints version message
Flags:
-h, --help help for vault
-b, --verbose enable verbose mode (VAULT_VERBOSE)
-v, --version prints version
Use "vault [command] --help" for more information about a command.Create a new locked vault file:
vault initOR
Add some content to your vault.txt and lock it:
vim vault.txt
vault lockUnlock the vault as plain .txt file:
vault unlockUnlock the file for 5 seconds as .txt.
In this time you can open it with an editor.
vault tempPrint the locked content in console:
vault printTo choose another file than the vault.txt use the second argument without extensions:
(test for test.txt and test.vt)
vault lock <filename>
vault temp <filename>
vault unlock <filename>
vault init <filename>
vault print <filename>For this section go is required, check out the install go guide.
Clone the repo:
git clone https://github.com/NobleMajo/vault.git
cd vaultBuild the vault binary from source code:
make build
./vaultFor this section go is required, check out the install go guide.
This part is work in progress, I want to use 'AIR' as auto-reload tool:
make dev #WIPThe required go version for this project is in the go.mod file.
To install and update go, I can recommend the following repo:
git clone git@github.com:udhos/update-golang.git golang-updater
cd golang-updater
sudo ./update-golang.shContributions to this project are welcome!
Interested users can refer to the guidelines provided in the CONTRIBUTING.md file to contribute to the project and help improve its functionality and features.
This project is licensed under the MIT license, providing users with flexibility and freedom to use and modify the software according to their needs.
This project is provided without warranties.
Users are advised to review the accompanying license for more information on the terms of use and limitations of liability.