Socket
Book a DemoInstallSign in
Socket

@coast-team/mnemonicjs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coast-team/mnemonicjs

JavaScript port of the mnemonic encoder originally written in C by Oren Tirosh

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

This is a direct JavaScript port of the mnemonic encoder originally written in C by Oren Tirosh and available from:

https://github.com/singpolyma/mnemonicode

These routines implement a method for encoding binary data into a sequence of words which can be spoken over the phone, for example, and converted back to data on the other side.

For more information, see:

http://web.archive.org/web/20101031205747/http://www.tothink.com/mnemonic/

Example usage:

>>> mnemonic.encode([101, 2, 240, 6, 108, 11, 20, 97])
"digital-apollo-aroma--rival-artist-rebel"

>>> mnemonic.encode([101, 2, 240, 6, 108, 11, 20, 97], "x/x/x - ")
"digital/apollo/aroma - rival/artist/rebel"

>>> mnemonic.decode("digital.apollo.aroma.rival.artist.rebel")
[101, 2, 240, 6, 108, 11, 20, 97]

>>> mnemonic.encode_int32(438871)
"judo-fluid-jet"

>>> mnemonic.decode_int32("judo-fluid-jet")
438871

Available under the MIT license.

Keywords

mnemonic

FAQs

Package last updated on 25 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.