DVault is designed to make protecting (encrypting) files and directories simple and secure. When protecting a file or directory DVault uses the terms 'lock' and 'unlock' to indicate the process of protecting (locking) a file and opening (unlocking) a file.
When you lock a file or directory with DVault it creates a single self contained 'vault' file.
DVault uses a passphrase to protected files, however you only need your passphrase when opening a vault.
DVault works as a simple interactive command line tool but is also designed to be called by other scripts.
DVault supports Linux, Mac OSX and Windows. For those interested; the gory technical details about RSA and AES are covered below.
When you lock a file with DVault the original file is deleted and replaced with a new .vault file.
e.g. important.txt becomes important.txt.vault.
When you unlock a file the vault is deleted and your original file is restored.
e.g. important.txt.vault becomes important.txt
To install DValut run:
dart pub global activate dvault
After installing DVault you need to run a one time initialisation process:
dvault init
Enter passphrase: ******
Confirm passphrase: *****
Generating keys, this make take a couple of minutes.
Generating: ......
Keys saved to ~/.dvault
To lock a file:
dvault lock important.txt
Stored and locked in important.txt.vault.
To unlock an existing vault.
dvault unlock important.txt.vault
Passphrase: ******
Unlocked to important.txt
As a .vault file contains the original keys the vault can be copied to any machine and provided you know the passphrase you can always unlock the file.
If you want to send an vault to a friend, you can create a vault using a single use passphrase which you can share with a friend.
dvault share important.txt
Looks like you are going to share a vault with a friend.
When prompted enter a passphrase that you can give to your friend.
**** DO NOT USE YOUR NORMAL DVAULT PASSPHRASE ****
Enter passphrase: *****
Confirm passphrase: *****
Stored and locked in important.txt.vault
Call your friend and give them the passphase or send it to them via
some other secure means.
**** DO NOT EMAIL OR TWEET THE PASSPHRASE! ****
Email 'imporantant.txt.vault to your friend'
You may also want to send them the following instruction.
Please find the attached .vault file which contains the documents discussed.
To unlock the vault you will need to download and install DVault from
https://github.com/onepub-dev/dvault/wiki/Shared-Vault
The above link also contains instructions on how to unlock the vault.
I will ring with the required passphrase shortly.