| Crates.io | cryptenv |
| lib.rs | cryptenv |
| version | 0.0.4 |
| created_at | 2021-10-10 02:59:14.197568+00 |
| updated_at | 2021-10-10 11:25:18.577536+00 |
| description | A transparent environment variables decryptor. |
| homepage | |
| repository | https://github.com/shosatojp/cryptenv |
| max_upload_size | |
| id | 463001 |
| size | 18,407 |
cryptenvA transparent environment variables decryptor.
cargo install cryptenv
cryptenv --data <(echo -n "THIS IS TOP SECRET")
# password? # input password
# cryptenv://ndDGOi3AUgcB4XOiiimRmfY8lEvoBtYZF8mrappszvuhyjAqtqt2IxIf2iFXx+If
use this URI string for environment variable value.
# ~/.bashrc
TOP_SECRET=cryptenv://ndDGOi3AUgcB4XOiiimRmfY8lEvoBtYZF8mrappszvuhyjAqtqt2IxIf2iFXx+If
cryptenv -- env | grep TOP_SECRET
# password? # input password
# TOP_SECRET=THIS IS TOP SECRET
create this function on your ~/.bashrc
function cryptenv-save() {
local varname=CRYPTENV_PASSWORD
if [ ! -v $varname ];then
read -s -p 'password? ' $varname
echo
export $varname
fi
cryptenv --password-from $varname $@
}
then use cryptenv-save instead of cryptenv
cryptenv-save -- env | grep TOP_SECRET