@cosmdev/encrypt-mnemonic

1.0.2 • Public • Published

encrypt-mnemonic

This library allows you to Encrypt and Decrypt in NodeJS your mnenomics

Installation

Use the package manager npm to install encrypt-mnemonic.

npm install @cosmdev/encrypt-mnemonic

Usage

import { encrypt, decrypt } from "@cosmdev/encrypt-mnemonic";

const mnemonic = "blush logic differ loud brother noble multiply child bring wheat start rain"
const pass = "secret1234"

const encMnemonic = encrypt(mnemonic, pass)
console.log('encrypted mnemonic', encMnemonic);

const decMnemonic = decrypt(encMnemonic, pass)
console.log('decrypted mnemonic', decMnemonic);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache-2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @cosmdev/encrypt-mnemonic

Weekly Downloads

0

Version

1.0.2

License

Apache-2.0

Unpacked Size

13.9 kB

Total Files

4

Last publish

Collaborators

  • atmoner