Socket
Socket
Sign inDemoInstall

dotenv-encode

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-encode


Version published
Weekly downloads
30
increased by25%
Maintainers
1
Weekly downloads
 
Created
Source

DOTENV-ENCODE

Installation

$ npm install dotenv-encode

Description

Dotenv-encode is a package for encrypting or decrypting a file or folder using a password.

  • Secured: It uses the aes256 algorythm from the crypto package for encrypting a file or folder with a key.
  • Fast and flexible: The command line only take few arguments and can be adapted easily.

Example

Encryption
$ npm dotenv-encode ./env/test.env -o ./encrypted/test.env -s MySecretKey
## Without secret/s, a prompt will ask for the secret
$ npm dotenv-encode ./env/test.env -o ./encrypted/test.env

This command will encrypt the content of the file ./env/test.env in the file ./encrypted/test.env with MySecretKey as password.

You can also encrypt all the file in a folder :

$ npm dotenv-encode ./env -o ./env_encrypted -s MySecretKey
Decryption
$ npm dotenv-encode ./env/test.env -o ./encrypted/test.env -s MySecretKey -d

This command will decrypt the content of the file ./env/test.env in the file ./encrypted/test.env with MySecretKey as password.

Usage

$ dotenv-encode <path-input-file> --options <VALUE>
OptionsShortMandatoryDescription
--out -oyesThe path of the result file or folder (it will be created if does not exist)
--secret -snoSpecify the password which would be used to encrypt or decrypt the file.
--decrypt-dnoIf present, the command will decrypt the input file

In case the secret is specified, a prompt will ask for the secret.
The decrypt option does not take any parameters. The path-input-file is the file on which we will get the data from.

Contributing

The main purpose of this repository is to continue evolving dotenv-encode, making it faster and easier to use. Development of this package happens in the open on GitHub, and I am grateful to anyone contributing bugfixes and improvements. Read below to learn how you can take part in improving Dotenv-encode.

Sending a PR

I am monitoring for pull requests. I will review any pull request and either merge it, request changes to it, or close it with an explanation.

Before submitting a pull request, please make sure the following is done:

  • Actual tests are not break
  • Documentation is still compiling
  • Code coverage is still higher than 85%
  • Your modification has been tested properly
  • Your modification has been documented

License

Dotenv-encode is MIT licensed.

FAQs

Package last updated on 09 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc