Closed etopeter closed 6 years ago
I had been considering this already. Let me review these changes for POSIX compliance. Ideally I'd like to support this kind of use case, but I'd still like this to work in a wide array of different shells. (csh, zsh, tcsh, etc.) I probably need some kind of test harness for the POSIX compliance. If you have recommendations let me know.
I know this PR is a bit of a rewrite and changes dynamics of the tool. My aim was to have both functionalities as far as sourcing it in scripts and using functions , and running as a command line tool to create new secrets. This code was tested only on mac. I used getopts POSIX compliant short parameters.
Proposal to add commandline tool create new password: encpass.sh -s my_key.enc
To get password encpass.sh -g my_key.enc
use in shell scripts . encpass.sh -q