1.0.2 • Published 8 months ago

@cosmdev/encrypt-mnemonic v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

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

1.0.2

8 months ago

1.0.1

8 months ago