TCHunt-ng icon indicating copy to clipboard operation
TCHunt-ng copied to clipboard

How about adding a test using libdisorder?

Open jaromil opened this issue 8 years ago • 2 comments

See: https://github.com/dyne/libdisorder

A simple C library for entropy measurement of byte streams and other data.

Its a pretty straightforward lib for Shannon entropy analysis.

jaromil avatar Jan 14 '17 12:01 jaromil

TCHunt-ng uses Chi-square test to determine a level of randomness, which consists of calculating an entropy and then comparing it against the embedded statistical data. Though I completely agree with you that having an automated test would be beneficial in assuring the quality of the software.

antagon avatar Jan 15 '17 12:01 antagon

I have added regression tests. It's far from perfect but it makes easier to spot if something went amiss (like if some files are no longer recognized as encrypted/random and vice versa).

https://github.com/antagon/TCHunt-ng/tree/master/test

antagon avatar Feb 19 '17 10:02 antagon