mirror of https://github.com/dirtbags/fluffy.git
Describe entropy program
This commit is contained in:
parent
cd3d143d84
commit
495da32693
1
Makefile
1
Makefile
|
@ -9,6 +9,7 @@ TARGETS += unhex
|
||||||
TARGETS += pcat
|
TARGETS += pcat
|
||||||
TARGETS += slice
|
TARGETS += slice
|
||||||
TARGETS += hex
|
TARGETS += hex
|
||||||
|
TARGETS += entropy
|
||||||
|
|
||||||
SCRIPTS += octets
|
SCRIPTS += octets
|
||||||
|
|
||||||
|
|
14
README.md
14
README.md
|
@ -145,6 +145,20 @@ In other words: you can feed `hex` output into `unhex` with no manipulations.
|
||||||
41
|
41
|
||||||
|
|
||||||
|
|
||||||
|
### entropy: compute shannon entropy
|
||||||
|
|
||||||
|
Displays the Shannon entropy of the input.
|
||||||
|
|
||||||
|
~/src/fluffy $ echo -n a | ./entropy
|
||||||
|
0.000000
|
||||||
|
~/src/fluffy $ echo -n aaaaaaaaa | ./entropy
|
||||||
|
0.000000
|
||||||
|
~/src/fluffy $ echo -n aaaaaaaaab | ./entropy
|
||||||
|
0.468996
|
||||||
|
~/src/fluffy $ echo -n aaaaaaaaabc | ./entropy
|
||||||
|
0.865857
|
||||||
|
|
||||||
|
|
||||||
### pyesc: python escape input
|
### pyesc: python escape input
|
||||||
|
|
||||||
Escapes input octets for pasting into a python "print" statement.
|
Escapes input octets for pasting into a python "print" statement.
|
||||||
|
|
Loading…
Reference in New Issue