secure-env icon indicating copy to clipboard operation
secure-env copied to clipboard

Decryt file is not specified by out option

Open aiponpa opened this issue 4 years ago • 3 comments

Content

When I decrypt an encrypted file using command line

npx secure-env -d -o config/credentials/development.env.enc -s development_key

I encountered the following error.

Secure-env :  ERROR OCCURED .env.enc does not exist.

It seems like that the following line causes this error. https://github.com/kunalpanchal/secure-env/blob/master/lib/cryptography.js#L17

It is fixed by modifying the line as follows. Could you include this fix in the next release?

    var inputFile = options.file || options.outputFile || '.env.enc';

aiponpa avatar Jan 14 '21 07:01 aiponpa

Thanks for raising the issue. Maintainer(s) will look into this shortly.

github-actions[bot] avatar Jan 14 '21 07:01 github-actions[bot]

See #20

sarawee avatar Apr 22 '21 22:04 sarawee

Why no one merges the #20 in, it's a month now

fsevenm avatar May 27 '21 11:05 fsevenm