├── zero.pdf ├── 4mbjpg.pdf ├── 4mbpng.pdf ├── random.pdf ├── zero.bf.pdf ├── zero.gz.pdf ├── 4mbjpg.bf.pdf ├── 4mbjpg.gz.pdf ├── 4mbjpg.rc2.pdf ├── 4mbjpg.rc4.pdf ├── 4mbjpg.rc5.pdf ├── 4mbjpg.zip.pdf ├── 4mbpng.bf.pdf ├── 4mbpng.gz.pdf ├── 4mbpng.rc2.pdf ├── 4mbpng.rc4.pdf ├── 4mbpng.rc5.pdf ├── 4mbpng.zip.pdf ├── random.bf.pdf ├── random.gz.pdf ├── random.rc2.pdf ├── random.rc4.pdf ├── random.rc5.pdf ├── random.zip.pdf ├── zero.cast.pdf ├── zero.des3.pdf ├── zero.rc2.pdf ├── zero.rc4.pdf ├── zero.rc5.pdf ├── zero.zip.pdf ├── 4mbjpg.cast.pdf ├── 4mbjpg.des3.pdf ├── 4mbpng.cast.pdf ├── 4mbpng.des3.pdf ├── random.cast.pdf ├── random.des3.pdf ├── zero.base64.pdf ├── zero.entropy.png ├── 4mbjpg.base64.pdf ├── 4mbjpg.entropy.png ├── 4mbpng.base64.pdf ├── 4mbpng.entropy.png ├── random.base64.pdf ├── random.entropy.png ├── zero.bf.entropy.png ├── zero.gz.entropy.png ├── 4mbjpg.bf.entropy.png ├── 4mbjpg.gz.entropy.png ├── 4mbpng.bf.entropy.png ├── 4mbpng.gz.entropy.png ├── random.bf.entropy.png ├── random.gz.entropy.png ├── zero.cast.entropy.png ├── zero.des3.entropy.png ├── zero.rc2.entropy.png ├── zero.rc4.entropy.png ├── zero.rc5.entropy.png ├── zero.zip.entropy.png ├── 4mbjpg.cast.entropy.png ├── 4mbjpg.des3.entropy.png ├── 4mbjpg.rc2.entropy.png ├── 4mbjpg.rc4.entropy.png ├── 4mbjpg.rc5.entropy.png ├── 4mbjpg.zip.entropy.png ├── 4mbpng.cast.entropy.png ├── 4mbpng.des3.entropy.png ├── 4mbpng.rc2.entropy.png ├── 4mbpng.rc4.entropy.png ├── 4mbpng.rc5.entropy.png ├── 4mbpng.zip.entropy.png ├── random.cast.entropy.png ├── random.des3.entropy.png ├── random.rc2.entropy.png ├── random.rc4.entropy.png ├── random.rc5.entropy.png ├── random.zip.entropy.png ├── zero.base64.entropy.png ├── 4mbjpg.base64.entropy.png ├── 4mbpng.base64.entropy.png ├── random.base64.entropy.png ├── README.md └── examples.sh /zero.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.pdf -------------------------------------------------------------------------------- /4mbjpg.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.pdf -------------------------------------------------------------------------------- /4mbpng.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.pdf -------------------------------------------------------------------------------- /random.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.pdf -------------------------------------------------------------------------------- /zero.bf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.bf.pdf -------------------------------------------------------------------------------- /zero.gz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.gz.pdf -------------------------------------------------------------------------------- /4mbjpg.bf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.bf.pdf -------------------------------------------------------------------------------- /4mbjpg.gz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.gz.pdf -------------------------------------------------------------------------------- /4mbjpg.rc2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.rc2.pdf -------------------------------------------------------------------------------- /4mbjpg.rc4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.rc4.pdf -------------------------------------------------------------------------------- /4mbjpg.rc5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.rc5.pdf -------------------------------------------------------------------------------- /4mbjpg.zip.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.zip.pdf -------------------------------------------------------------------------------- /4mbpng.bf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.bf.pdf -------------------------------------------------------------------------------- /4mbpng.gz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.gz.pdf -------------------------------------------------------------------------------- /4mbpng.rc2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.rc2.pdf -------------------------------------------------------------------------------- /4mbpng.rc4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.rc4.pdf -------------------------------------------------------------------------------- /4mbpng.rc5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.rc5.pdf -------------------------------------------------------------------------------- /4mbpng.zip.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.zip.pdf -------------------------------------------------------------------------------- /random.bf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.bf.pdf -------------------------------------------------------------------------------- /random.gz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.gz.pdf -------------------------------------------------------------------------------- /random.rc2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.rc2.pdf -------------------------------------------------------------------------------- /random.rc4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.rc4.pdf -------------------------------------------------------------------------------- /random.rc5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.rc5.pdf -------------------------------------------------------------------------------- /random.zip.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.zip.pdf -------------------------------------------------------------------------------- /zero.cast.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.cast.pdf -------------------------------------------------------------------------------- /zero.des3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.des3.pdf -------------------------------------------------------------------------------- /zero.rc2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.rc2.pdf -------------------------------------------------------------------------------- /zero.rc4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.rc4.pdf -------------------------------------------------------------------------------- /zero.rc5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.rc5.pdf -------------------------------------------------------------------------------- /zero.zip.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.zip.pdf -------------------------------------------------------------------------------- /4mbjpg.cast.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.cast.pdf -------------------------------------------------------------------------------- /4mbjpg.des3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.des3.pdf -------------------------------------------------------------------------------- /4mbpng.cast.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.cast.pdf -------------------------------------------------------------------------------- /4mbpng.des3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.des3.pdf -------------------------------------------------------------------------------- /random.cast.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.cast.pdf -------------------------------------------------------------------------------- /random.des3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.des3.pdf -------------------------------------------------------------------------------- /zero.base64.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.base64.pdf -------------------------------------------------------------------------------- /zero.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.entropy.png -------------------------------------------------------------------------------- /4mbjpg.base64.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.base64.pdf -------------------------------------------------------------------------------- /4mbjpg.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.entropy.png -------------------------------------------------------------------------------- /4mbpng.base64.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.base64.pdf -------------------------------------------------------------------------------- /4mbpng.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.entropy.png -------------------------------------------------------------------------------- /random.base64.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.base64.pdf -------------------------------------------------------------------------------- /random.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.entropy.png -------------------------------------------------------------------------------- /zero.bf.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.bf.entropy.png -------------------------------------------------------------------------------- /zero.gz.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.gz.entropy.png -------------------------------------------------------------------------------- /4mbjpg.bf.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.bf.entropy.png -------------------------------------------------------------------------------- /4mbjpg.gz.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.gz.entropy.png -------------------------------------------------------------------------------- /4mbpng.bf.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.bf.entropy.png -------------------------------------------------------------------------------- /4mbpng.gz.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.gz.entropy.png -------------------------------------------------------------------------------- /random.bf.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.bf.entropy.png -------------------------------------------------------------------------------- /random.gz.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.gz.entropy.png -------------------------------------------------------------------------------- /zero.cast.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.cast.entropy.png -------------------------------------------------------------------------------- /zero.des3.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.des3.entropy.png -------------------------------------------------------------------------------- /zero.rc2.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.rc2.entropy.png -------------------------------------------------------------------------------- /zero.rc4.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.rc4.entropy.png -------------------------------------------------------------------------------- /zero.rc5.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.rc5.entropy.png -------------------------------------------------------------------------------- /zero.zip.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.zip.entropy.png -------------------------------------------------------------------------------- /4mbjpg.cast.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.cast.entropy.png -------------------------------------------------------------------------------- /4mbjpg.des3.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.des3.entropy.png -------------------------------------------------------------------------------- /4mbjpg.rc2.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.rc2.entropy.png -------------------------------------------------------------------------------- /4mbjpg.rc4.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.rc4.entropy.png -------------------------------------------------------------------------------- /4mbjpg.rc5.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.rc5.entropy.png -------------------------------------------------------------------------------- /4mbjpg.zip.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.zip.entropy.png -------------------------------------------------------------------------------- /4mbpng.cast.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.cast.entropy.png -------------------------------------------------------------------------------- /4mbpng.des3.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.des3.entropy.png -------------------------------------------------------------------------------- /4mbpng.rc2.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.rc2.entropy.png -------------------------------------------------------------------------------- /4mbpng.rc4.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.rc4.entropy.png -------------------------------------------------------------------------------- /4mbpng.rc5.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.rc5.entropy.png -------------------------------------------------------------------------------- /4mbpng.zip.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.zip.entropy.png -------------------------------------------------------------------------------- /random.cast.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.cast.entropy.png -------------------------------------------------------------------------------- /random.des3.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.des3.entropy.png -------------------------------------------------------------------------------- /random.rc2.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.rc2.entropy.png -------------------------------------------------------------------------------- /random.rc4.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.rc4.entropy.png -------------------------------------------------------------------------------- /random.rc5.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.rc5.entropy.png -------------------------------------------------------------------------------- /random.zip.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.zip.entropy.png -------------------------------------------------------------------------------- /zero.base64.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/zero.base64.entropy.png -------------------------------------------------------------------------------- /4mbjpg.base64.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbjpg.base64.entropy.png -------------------------------------------------------------------------------- /4mbpng.base64.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/4mbpng.base64.entropy.png -------------------------------------------------------------------------------- /random.base64.entropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyphunk/entropy_examples/HEAD/random.base64.entropy.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Entropy Examples 2 | ================ 3 | 4 | Herein you will find graphs showing entropy analysis graphs for different examples and data types. Entropy is the randomness of data when comparing bytes with neighbouring bytes. Entropy analysis code slides a window of N bytes across the data determining how different byte B is from byte B+1. This helps in determining if your target data is compressed, encrypted or finding keys and other distinctions. 5 | 6 | ``example.sh`` is used to generate. It utilizes [cyphunks libdisorder](https://github.com/cyphunk/libdisorder) branch (only adds a util to pipe a file through) and gnuplot. 7 | 8 | Examples 9 | ======== 10 | 11 | Here is a sample of results. See repository for all samples. 12 | 13 | Random 4MB JPEG 14 | ![4mb JPG](./4mbjpg.entropy.png) 15 | 16 | Random (``dd if=/dev/random of=random bs=1m count=4``) 17 | ![Random data](./random.entropy.png) 18 | 19 | Random Ziped. common zip meta data cause larger Y scale 20 | ![Random data Ziped](./random.zip.entropy.png) 21 | 22 | Random 4MB JPEG encrypted with RC2 23 | ![4mb JPG RC2](./4mbjpg.rc2.entropy.png) 24 | 25 | 26 | License 27 | ======= 28 | 29 | License: Non-White-Heterosexual-Male 30 | 31 | If you are not a white heterosexual male you are permitted to copy, sell and use 32 | this work in any manner you choose without need to include any attribution you 33 | do not see fit. You are asked as a courtesy to retain this license in any 34 | derivatives but you are not required. If you are a white heterosexual male you 35 | are provided the same permissions (reuse, modification, resale) but are 36 | required to include this license in any documentation and any public facing 37 | derivative. You are also required to include attribution to the original author 38 | or to an author responsible for redistribution of a derivative. 39 | 40 | http://nonwhiteheterosexualmalelicense.org -------------------------------------------------------------------------------- /examples.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "*** GET SAMPLES ***" 4 | 5 | dd if=/dev/random of=random bs=1m count=4 6 | dd if=/dev/zero of=zero bs=1m count=4 7 | if [ ! -e "4mbpng" ]; then 8 | wget -O 4mbpng https://upload.wikimedia.org/wikipedia/en/f/ff/Victoria_Inner_Harbour_HDR.png 9 | fi 10 | if [ ! -e "4mbjpg" ]; then 11 | wget -O 4mbjpg https://upload.wikimedia.org/wikipedia/commons/1/1e/Caerte_van_Oostlant_4MB.jpg 12 | fi 13 | 14 | echo "*** MAKE ENCODE/ENCRYPT EXAMPLES ***" 15 | 16 | for alg in des3 bf rc2 rc4 rc5 cast base64; do 17 | echo $alg random 18 | openssl $alg -in random -out random.$alg -pass pass:test 19 | echo $alg zero 20 | openssl $alg -in zero -out zero.$alg -pass pass:test 21 | echo $alg 4mbjpg 22 | openssl $alg -in 4mbjpg -out 4mbjpg.$alg -pass pass:test 23 | echo $alg 4mbpng 24 | openssl $alg -in 4mbpng -out 4mbpng.$alg -pass pass:test 25 | done 26 | 27 | echo "*** MAKE COMPRESS SAMPLES ***" 28 | 29 | zips[0]="gzip -f -c -9 > .gz" 30 | zips[1]="zip " 31 | for zip in "${zips[@]}"; do 32 | cmd=`echo -n $zip | sed 's//zero/g'` 33 | echo $cmd 34 | eval $cmd 35 | cmd=`echo -n $zip | sed 's//random/g'` 36 | echo $cmd 37 | eval $cmd 38 | cmd=`echo -n $zip | sed 's//4mbjpg/g'` 39 | echo $cmd 40 | eval $cmd 41 | cmd=`echo -n $zip | sed 's//4mbpng/g'` 42 | echo $cmd 43 | eval $cmd 44 | done 45 | 46 | # XOR 47 | 48 | if [[ $(command -v xortool-xor) ]]; then 49 | echo "MAKE XOR SAMPLES" 50 | key="feeddeadca72bab1" #$(dd if=/dev/random bs=1 count=16 2>/dev/null | xxd -p); # key 51 | xortool-xor -h $key -f 4mbpng > 4mbpng.xor 52 | xortool-xor -h $key -f 4mbjpg > 4mbjpg.xor 53 | xortool-xor -h $key -f zero > zero.xor 54 | xortool-xor -h $key -f random > random.xor 55 | 56 | fi 57 | 58 | 59 | echo "*** ANALYZE SAMPLES ***" 60 | 61 | ls random* zero* 4mb* | xargs analyze.sh --nocleanup 62 | rm -rf *.dat *.md tmp.dot 63 | --------------------------------------------------------------------------------