Coder Social home page Coder Social logo

mnemonic.js's Introduction

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.

mnemonic.js's People

Contributors

mbrubeck avatar

Stargazers

Job Banens avatar Snehesh avatar John S. Dvorak avatar Alexey Ugnichev avatar Andrew Grathwohl avatar  avatar ∆D avatar Filip Dabrowski avatar Kevin Brubeck Unhammer avatar Shane Husson avatar Adam D. Walling the Temperance avatar Joshua Stauter avatar  avatar Lewis Liu avatar Daniil Babanin avatar Yuval Kogman avatar Christoph Grabo avatar David Pennington avatar Sunny Gonnabathula avatar Rhea Myers avatar Anupam <|> अनुपम avatar The Dod avatar Sripathi Krishnan avatar Brian Sulcer avatar Andy Palmer avatar Jeremy Kohn avatar  avatar Mark Norgren avatar  avatar István Szmozsánszky avatar Stephen Paul Weber avatar

Watchers

 avatar Kevin Eustice avatar James Cloos avatar Dmitry Atamanov avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.