# umb-key

> Simple module to manage EOS keys and EOS account with master password

Latest version **0.0.6** (published 2018-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install umb-key
pnpm add umb-key
yarn add umb-key
bun add umb-key
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2018-08-29 |
| First published | 2018-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tuan Nguyen |
| Maintainers | tuan3w |
| Keywords | umb key, private key, keystore |

## Links

- npm: https://www.npmjs.com/package/umb-key
- Repository: https://gitlab.com/tuan3w/umb-key
- Homepage: https://gitlab.com/tuan3w/umb-key#README
- Issues: https://gitlab.com/tuan3w/umb-key/issues
- npm.io page: https://npm.io/package/umb-key

## Dependencies (4)

- [md5](https://npm.io/package/md5.md) ^2.2.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.0
- [eosjs-ecc](https://npm.io/package/eosjs-ecc.md) ^4.0.3
- [keythereum](https://npm.io/package/keythereum.md) ^1.0.4

## Recent versions

- 0.0.6 (latest) — 2018-08-29
- 0.0.5 — 2018-08-20
- 0.0.2 — 2018-08-16
- 0.0.1 — 2018-08-15

## README

# umb-key
Simple module to manage EOS keys with master password.

## Installation

```bash
$ npm install --save umb-key
```

## Usage

```javascript
const key = require('umb-key');

let masterPasswd = ..
let secret1 = 'secret-key-1';
let secret2 = 'secret-key-1';
key.exportKey(secret2, masterPasswd, folder, "secret1");
key.exportKey(secret2, masterPasswd, folder, "secret2");

// reimport key
secret1 = lib.importKey(folder, 'secret1', masterPasswd);
secrets = lib.importKeys(folder, masterPasswd);
//{
//   secret1: 
//   secret2:
//}

// manage EOS account
lib.generateKey((key) => {
    let account = lib.EOSAccount(id, key);
    lib.saveAccountToStore('/tmp/eos', account, masterPasswd);
    
    // restore account
    account = lib.loadAccountFromStore('/tmp/eos', masterPasswd);
})

// hash message using sha-256
let ss = lib.hash('hello, world!');

// access eosjs-ecc
lib.ecc.
```

## LICENSE
[MIT](LICENSE)

---
_Source: https://npm.io/package/umb-key · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
