TCHunt-ng
TCHunt-ng copied to clipboard
How about adding a test using libdisorder?
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.
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.
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