myvault.sh is a shell script for editing an ecrypted text file stored as
The text file is symmetrically encrypted using aes-256 and a random 32 character
password that is generated every time the script is run. The password is then
encrypted using an RSA key (Default:
It can also be used to encrypt and decrypt arbitrary files using the same method.
If you do not already have an RSA key generated, use the following command to do so.:
$ ssh-keygen -t rsa -b 4096
- Note: It's HIGHLY RECOMMENDED to use a passphrase on the key.
myvault.sh [-f FILE] [-k KEYFILE] [-p KEYFILE] [-e] [-d] [in_file] [> out_file]
- Specify an encrypted text file (Default:
- Specify a private RSA key file (Default:
- Specify a public key file (Default:
myvault.sh uses the EDITOR and TMPDIR environment variables for some configuration.
If EDITOR is not defined, it defaults to