Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about adding a test using libdisorder? #1

Open
jaromil opened this issue Jan 14, 2017 · 2 comments
Open

How about adding a test using libdisorder? #1

jaromil opened this issue Jan 14, 2017 · 2 comments

Comments

@jaromil
Copy link

jaromil commented Jan 14, 2017

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.

@antagon
Copy link
Owner

antagon commented Jan 15, 2017

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
Copy link
Owner

antagon commented Feb 19, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants