New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

coldenv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

coldenv

Utility to encrypt and decrypt JSON file for .env assembly

unpublished
latest
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

ColdEnv

Utility to encrypt and decrypt JSON file for .env assembly

Installation

$ yarn add https://github.com/Cold927/coldenv

How to use

ColdEnv is created to help hide your development.json file that create .env and keep your data safe in group project.

For example, you have data about your database and server connections in your development.json like this:

{
  "node": {
    "env": "development"
  },
  "mongo": {
    "host1": "127.0.0.1",
    "port1": "8000",
    "replica": false,
    "user": "user",
    "password": "password",
    "database": "example_db",
    "root": {
      "user": "root",
      "password": "root"
    }
  }
}

You can encrypt your file with private.key to keep your data safe while share it to others.

Private key can be anything, just a word or UUID for example.private.key file must be in your root of the project directory.

Encrypt file

$ coldenv playground encrypt

The encrypted file will be located in the root of the project with the name secret.txt.

Decrypt file

$ coldenv playground decrypt

For decryption, the following files must be in the root of the project directory:

  • private.key - private key
  • secret.txt - encrypted data file

Author

Roman Cold

License

ColdEnv is MIT licensed

FAQs

Package last updated on 11 Jul 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