Coder Social home page Coder Social logo

entropy_calculator's Introduction

Entropy Calculator

Entropy Calculator for the language-dependent strings with support for 10+ languages.

  • The tool is language-space sensitive. Use with proper language option.

Installation

Use the package manager npm to install

npm i entropy_calculator

Feautures

Supports 10+ languages in the current version. All the supported languages are as follows:

  • Chinese(**人)
  • Devnagari(देवनागरी)
  • English
  • French(Français)
  • German(Deutsch)
  • Greek(ελληνικά)
  • Hebrew(עִברִית)
  • Hinglish(HIndi+English)
  • Modern Latin
  • Russian(Русский)
  • Spanish(Español)

Usage

const test  = require("entropy_calculator");

//Allowed language options ["chinese", "devanagari", "english", "french", "german", "greek","hebrew","hinglish","latin", "russian", "spanish"]
//const result = test("<PASSWORD_STRING>", "<LANGUAGE>");

const result = test("martes h71 panda sigla cereo", "spanish"); 
console.log(result); // returns 174

result = test("neon 95th prissy ib read tern", "english");
console.log(result); // returns 247

result = test("тайна скарб литьЄ завет боком форма фильм", "russian");
console.log(result); // returns 177

Note

Selection of the correct language, while invoking the function, is necessary for the proper calculation of the entropy. For e.g. with string archer carol cody blimp skit the correct language option is english. Any other language option would result in incorrect entropy.

Constraints

  • Supports online single language strings.
  • Mixing of the language is not supported in the current version.
  • Arabic numbers [0-9] is allowed with all the input string.

entropy_calculator's People

Contributors

sachinlodhi avatar

Stargazers

 avatar

Watchers

 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.