codesimian
Class ChaosMeasure

java.lang.Object
  extended by codesimian.ChaosMeasure

public class ChaosMeasure
extends java.lang.Object

measures the chaos of bits, bytes, or other combination of bits. If it is truly chaotic, returns 1. If its completely predictable, returns 0. Most things will cause a return near 1 but not equal to it.

WARNING: encrypted text appears perfectly random, but is not. Any measurement of 1.0 is probably wrong. Dont make assumptions. Have some doubt of your methods.


Method Summary
static double measureChaosOfBitsByZip(boolean[] bits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

measureChaosOfBitsByZip

public static double measureChaosOfBitsByZip(boolean[] bits)