@dapp-stack/secrets
Encrypt/Decrypt the secrets while using DApp Stack and keep your dapp safe
Last updated a year ago by john-solon .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @dapp-stack/secrets 
SYNC missed versions from official npm registry.

@dapp-stack/secrets

Manage your secrets wisely. This package will allow you to commit the an encrypted secrets file and access it.

DO NOT COMMIT YOUR MNEMONIC OR API KEY

Installation

# Yarn
yarn add @dapp-stack/secrets

# NPM
npm install @dapp-stack/secrets

In order to access the secrets you must have the master.key file or setup the environment variable: MASTER_KEY

NEVER COMMIT THIS FILE OR PUBLISH THE MASTER KEY ANYWHERE

Setup

Generate the master key and the encrypted file

dapp-stack-secrets setup

Edit the secrets

Open the editor and decrypt the file. The encrypted secrets is saved when the editor is closed

dapp-stack-secrets edit

Print the secrets

dapp-stack-secrets show

Access the secrets programmatically

const secrets = require("@dapp-stack/secrets");

const decryptedSecrets = secrets.decrypt();

Current Tags

  • 0.5.0                                ...           latest (a year ago)

5 Versions

  • 0.5.0                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 5
Last Month 2
Dependencies (6)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |