Crates.io | entropia |
lib.rs | entropia |
version | 0.1.0 |
source | src |
created_at | 2022-12-12 17:43:16.661663 |
updated_at | 2022-12-12 17:43:16.661663 |
description | Measure the information entropy of some text. |
homepage | https://github.com/clementi/entropia |
repository | https://github.com/clementi/entropia |
max_upload_size | |
id | 735140 |
size | 4,454 |
Calculate the information entropy of some text
You can install entropy either by using Cargo, or by downloading a binary from the Releases page.
Run this in your shell:
$ cargo install entropia
See the Releases page.
Entropy takes no arguments. It captures text on stdin and reports the information entropy of that text. For example:
$ cat file | entropy
2362.4587346565673
$ secret token | entropy
138.9089067264194
$ echo "Hello world" | entropy
69.68825906469124
$ entropy
Hello world
69.68825906469124