# entropy_calculator

> multilingual entropy checker

Latest version **1.0.7** (published 2023-02-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install entropy_calculator
pnpm add entropy_calculator
yarn add entropy_calculator
bun add entropy_calculator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2023-02-13 |
| First published | 2023-02-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Palak & Sachin |
| Maintainers | sachinlodhi |
| Keywords | Entropy, calculator, password strength, password entropy, password security, entropy calculation, password complexity, entropy measurement, entropy analysis |

## Links

- npm: https://www.npmjs.com/package/entropy_calculator
- Repository: https://github.com/sachinlodhi/entropy_calculator
- Homepage: https://github.com/sachinlodhi/entropy_calculator#readme
- Issues: https://github.com/sachinlodhi/entropy_calculator/issues
- npm.io page: https://npm.io/package/entropy_calculator

## Recent versions

- 1.0.7 (latest) — 2023-02-13
- 1.0.6 — 2023-02-13
- 1.0.5 — 2023-02-13
- 1.0.4 — 2023-02-05
- 1.0.3 — 2023-02-04
- 1.0.2 — 2023-02-04
- 1.0.1 — 2023-02-04
- 1.0.0 — 2023-02-03

## README

# 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](https://www.npmjs.com/package/entropy_calculator) to install

```bash
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

```javascript
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.

---
_Source: https://npm.io/package/entropy_calculator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
