@dapp-stack/secrets
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@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();

Package Sidebar

Install

npm i @dapp-stack/secrets

Weekly Downloads

1

Version

0.5.0

License

Apache-2.0

Unpacked Size

15.9 kB

Total Files

13

Last publish

Collaborators

  • john-solon